Skip to content

Commit

Permalink
docker container will be build on every run, but pushed only on tags
Browse files Browse the repository at this point in the history
  • Loading branch information
kamil-stc committed Feb 14, 2024
1 parent 7b477dc commit 21ae12f
Showing 1 changed file with 1 addition and 2 deletions.
3 changes: 1 addition & 2 deletions .github/workflows/push.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -30,7 +30,6 @@ jobs:
env:
REGISTRY: "${{ github.repository == 'uswitch/vault-creds' && 'quay.io' || 'ghcr.io' }}"
IMAGE_NAME: "${{ github.repository == 'uswitch/vault-creds' && 'uswitch/vault-creds' || github.repository }}"
#if: github.ref_name == 'master' || startsWith(github.ref, 'refs/tags/v')
needs: [test, build]
runs-on: ubuntu-latest
steps:
Expand Down Expand Up @@ -59,6 +58,6 @@ jobs:
context: .
labels: ${{ steps.meta.outputs.labels }}
platforms: linux/amd64,linux/arm64
push: true
push: ${{ github.ref_name == 'master' || startsWith(github.ref, 'refs/tags/v') }}
tags: ${{ steps.meta.outputs.tags }}
build-args: LDFLAGS=-X main.SHA=${{ github.sha }}

0 comments on commit 21ae12f

Please sign in to comment.