Skip to content

Commit

Permalink
always publish image but with different tags
Browse files Browse the repository at this point in the history
  • Loading branch information
sindunuragarp committed Nov 13, 2023
1 parent bf8b5f3 commit 185fbf9
Showing 1 changed file with 3 additions and 3 deletions.
6 changes: 3 additions & 3 deletions .github/workflows/go.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -94,7 +94,7 @@ jobs:
env:
REGISTRY_IMAGE: ghcr.io/miroapp/actions-runner-controller
BUILD_PLATFORM: linux/amd64
BUILD_VERSION: ${{ github.sha }}
BUILD_VERSION: ${{ github.event_name != 'pull_request' && 'master' || 'branch' }}-${{ github.sha }}
steps:
- uses: docker/setup-buildx-action@v3

Expand All @@ -113,7 +113,7 @@ jobs:
uses: docker/metadata-action@v5
with:
images: ${{ env.REGISTRY_IMAGE }}

- uses: docker/build-push-action@v5
id: build
with:
Expand All @@ -128,5 +128,5 @@ jobs:
cache-to: type=gha,mode=max,scope=${{ github.ref_name }}
platforms: ${{ env.BUILD_PLATFORM }}
labels: ${{ steps.meta.outputs.labels }}
push: ${{ github.event_name != 'pull_request' }}
push: true
tags: ${{ env.REGISTRY_IMAGE }}:${{ env.BUILD_VERSION }}

0 comments on commit 185fbf9

Please sign in to comment.