Skip to content

Commit

Permalink
[#555] Fix missing environment variable for domain in resync workflow
Browse files Browse the repository at this point in the history
The commit addresses a missing domain environment variable in the resync
workflow, which caused issues with the workflow execution. By adding the
necessary logic to set the DOMAIN env, the resync workflow now correctly
configures the domain variable for staging, beta, and other environments
to ensure the workflow runs smoothly.
  • Loading branch information
placek committed Mar 27, 2024
1 parent 8069691 commit 2767c07
Showing 1 changed file with 10 additions and 0 deletions.
10 changes: 10 additions & 0 deletions .github/workflows/resync-cardano-node-and-db-sync.yml
Original file line number Diff line number Diff line change
Expand Up @@ -63,6 +63,16 @@ jobs:
with:
ssh-private-key: ${{ secrets.GHA_SSH_PRIVATE_KEY }}

- name: Set domain
run: |
if [[ "${{ inputs.environment }}" == "staging" ]]; then
echo "DOMAIN=staging.govtool.byron.network" >> $GITHUB_ENV
elif [[ "${{ inputs.environment }}" == "beta" ]]; then
echo "DOMAIN=sanchogov.tools" >> $GITHUB_ENV
else
echo "DOMAIN=${DOMAIN:-$ENVIRONMENT-$CARDANO_NETWORK.govtool.byron.network}" >> $GITHUB_ENV
fi
- name: Destroy Cardano Node, DB sync and Postgres database
run: |
make --debug=b destroy-cardano-node-and-dbsync
Expand Down

0 comments on commit 2767c07

Please sign in to comment.