Skip to content

Commit

Permalink
Docker Image workflow determine cnversion to use based on the guild_d…
Browse files Browse the repository at this point in the history
…eploy_branch name.

- When branch preview/sanchonet use prerelease node version.
- For any other branch use the original logic for latest (stable) node version.
  • Loading branch information
TrevorBenson committed Apr 27, 2024
1 parent d3b35c7 commit c6a05f7
Showing 1 changed file with 6 additions and 2 deletions.
8 changes: 6 additions & 2 deletions .github/workflows/docker_bin.yml
Original file line number Diff line number Diff line change
Expand Up @@ -49,10 +49,14 @@ jobs:
id: set_short_sha
run: |
echo "short_sha=$(git rev-parse --short HEAD)" >> $GITHUB_OUTPUT
- name: Get CNVERSION
- name: Set CNVersion
id: set_cnversion
run: |
echo "cnversion=$(cat files/docker/node/release-versions/cardano-node-latest.txt)" >> $GITHUB_OUTPUT
if [[ "${{ steps.set_guild_deploy_branch.outputs.guild_deploy_branch }}" != "preview" && "${{ steps.set_guild_deploy_branch.outputs.guild_deploy_branch }}" != "sanchonet" ]]; then
echo "cnversion=$(cat files/docker/node/release-versions/cardano-node-latest.txt)" >> "$GITHUB_OUTPUT"
else
echo "cnversion=$(cat files/docker/node/release-versions/cardano-node-prerelease.txt)" >> "$GITHUB_OUTPUT"
fi
build_production:
needs: set_environment_vars
if: needs.set_environment_vars.outputs.testing == 'false' && needs.set_environment_vars.outputs.guild_deploy_branch == 'master'
Expand Down

0 comments on commit c6a05f7

Please sign in to comment.