Skip to content

Commit

Permalink
ci(release): run push in dry-run mode when running on branch
Browse files Browse the repository at this point in the history
Signed-off-by: Aljoscha Poertner <aljoscha.poertner@proton.me>
  • Loading branch information
aljoshare committed Feb 13, 2024
1 parent d2ab583 commit 32df9d3
Showing 1 changed file with 7 additions and 0 deletions.
7 changes: 7 additions & 0 deletions .github/workflows/release.yml
Original file line number Diff line number Diff line change
Expand Up @@ -170,7 +170,14 @@ jobs:
username: ${{ github.actor }}
password: ${{ secrets.GITHUB_TOKEN }}
- name: Create manifest list and push
if: ${{ startsWith(github.ref, 'refs/tags/') }}
working-directory: /tmp/digests
run: |
docker buildx imagetools create $(jq -cr '.tags | map("-t " + .) | join(" ")' <<< "$DOCKER_METADATA_OUTPUT_JSON") \
$(printf '${{ env.REGISTRY }}/${{ env.IMAGE_NAME }}@sha256:%s ' *)
- name: Create manifest list and push in dry-run mode
if: ${{ startsWith(github.ref, 'refs/tags/') }}
working-directory: /tmp/digests
run: |
docker buildx imagetools create --dry-run $(jq -cr '.tags | map("-t " + .) | join(" ")' <<< "$DOCKER_METADATA_OUTPUT_JSON") \
$(printf '${{ env.REGISTRY }}/${{ env.IMAGE_NAME }}@sha256:%s ' *)

0 comments on commit 32df9d3

Please sign in to comment.