Skip to content

Commit

Permalink
Merge pull request #22 from sparkfabrik/feature/update_gcloud
Browse files Browse the repository at this point in the history
refs #000: update gcloud and some minor fixes in pipeline
  • Loading branch information
Monska85 authored Jan 5, 2024
2 parents a3037cf + a17dbdf commit 7a3a825
Show file tree
Hide file tree
Showing 2 changed files with 6 additions and 4 deletions.
8 changes: 5 additions & 3 deletions .github/workflows/docker-publish.yml
Original file line number Diff line number Diff line change
@@ -1,10 +1,12 @@
name: Docker

on:
pull_request:
push:
branches: main

env:
RELEASE_BRANCH: main
REGISTRY: ghcr.io
IMAGE_NAME: cloud-tools

Expand All @@ -21,7 +23,7 @@ jobs:
images: ${{ env.REGISTRY }}/${{ github.repository_owner }}/${{ env.IMAGE_NAME }}
tags: |
# set latest tag for main branch
type=raw,value=latest,enable=${{ github.ref == format('refs/heads/{0}', 'main') }}
type=raw,value=latest,enable=${{ github.ref == format('refs/heads/{0}', env.RELEASE_BRANCH) }}
type=sha,format=long,prefix=
- name: Set up Docker Buildx
Expand All @@ -46,7 +48,7 @@ jobs:
deploy:
needs: test
runs-on: ubuntu-latest
if: github.ref == 'refs/heads/main'
if: contains('["refs/heads/main", "refs/heads/master"]', github.ref)

steps:
- uses: actions/checkout@v4
Expand All @@ -66,7 +68,7 @@ jobs:
images: ${{ env.REGISTRY }}/${{ github.repository_owner }}/${{ env.IMAGE_NAME }}
tags: |
# set latest tag for main branch
type=raw,value=latest,enable=${{ github.ref == format('refs/heads/{0}', 'main') }}
type=raw,value=latest,enable=${{ github.ref == format('refs/heads/{0}', env.RELEASE_BRANCH) }}
type=sha,format=long,prefix=
- name: Set up Docker Buildx
Expand Down
2 changes: 1 addition & 1 deletion Makefile
Original file line number Diff line number Diff line change
Expand Up @@ -3,7 +3,7 @@
# make cloud-tools
#

GOOGLE_CLOUD_CLI_IMAGE_TAG ?= 456.0.0-alpine
GOOGLE_CLOUD_CLI_IMAGE_TAG ?= 458.0.1-alpine
IMAGE_NAME ?= sparkfabrik/cloud-tools
IMAGE_TAG ?= latest

Expand Down

0 comments on commit 7a3a825

Please sign in to comment.