Skip to content

Commit

Permalink
Skip pushing to registries if testing the workflow
Browse files Browse the repository at this point in the history
  • Loading branch information
TrevorBenson committed Nov 26, 2023
1 parent 9277073 commit 91d38f8
Showing 1 changed file with 5 additions and 0 deletions.
5 changes: 5 additions & 0 deletions .github/workflows/docker_bin.yml
Original file line number Diff line number Diff line change
Expand Up @@ -7,6 +7,10 @@ on:
description: 'Branch to deploy'
required: false
default: 'master'
testing:
description: 'Testing workflow'
required: false
default: 'false'
push:
paths:
- 'files/docker/node/release-versions/cardano-node-latest.txt'
Expand Down Expand Up @@ -48,6 +52,7 @@ jobs:
sudo rm -rf "/usr/local/share/boost"
sudo rm -rf "$AGENT_TOOLSDIRECTORY"
- name: docker push latest
if: env.testing == 'false' && env.guild_deploy_branch == 'master'
run: |
CNVERSION=`cat files/docker/node/release-versions/cardano-node-latest.txt`
docker push ${{ env.REGISTRY }}/${{ secrets.DOCKER_USER }}/cardano-node:latest
Expand Down

0 comments on commit 91d38f8

Please sign in to comment.