Skip to content

Commit

Permalink
feat(ci): Automatically push containers if branch name starts with "c…
Browse files Browse the repository at this point in the history
…ontainer" (#65)
  • Loading branch information
sasa-tomic committed Jan 16, 2024
1 parent a741f80 commit 97b98ef
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion .github/workflows/bazel.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -62,6 +62,6 @@ jobs:
files: |
release/*
- name: Push images to GitHub Container Registry
if: startsWith(github.ref, 'refs/tags/v')
if: ${{ startsWith(github.ref, 'refs/tags/v') || startsWith(github.ref, 'refs/heads/container') }}
run:
bazel query --noshow_progress 'kind("oci_push", ...)' | xargs -I_target bazel run _target -- --tag ${GITHUB_SHA}

0 comments on commit 97b98ef

Please sign in to comment.