From 91d38f8728963722a194783901d899019d8b902d Mon Sep 17 00:00:00 2001 From: TrevorBenson Date: Sun, 26 Nov 2023 09:04:57 -0800 Subject: [PATCH] Skip pushing to registries if testing the workflow --- .github/workflows/docker_bin.yml | 5 +++++ 1 file changed, 5 insertions(+) diff --git a/.github/workflows/docker_bin.yml b/.github/workflows/docker_bin.yml index 2158537e1..b82454414 100644 --- a/.github/workflows/docker_bin.yml +++ b/.github/workflows/docker_bin.yml @@ -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' @@ -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