Skip to content

Commit

Permalink
Update .gitlab-ci.yml file
Browse files Browse the repository at this point in the history
  • Loading branch information
Emmanuel-Tyty committed Feb 7, 2025
1 parent 11864bb commit 2109ef7
Showing 1 changed file with 7 additions and 0 deletions.
7 changes: 7 additions & 0 deletions .gitlab-ci.yml
Original file line number Diff line number Diff line change
Expand Up @@ -104,6 +104,13 @@ build_govtool:
set -xev
docker login -u "$CI_REGISTRY_USER" -p "$CI_REGISTRY_PASSWORD" "$CI_REGISTRY"
if [[ "$CI_COMMIT_REF_NAME" == "main" ]]; then
export CARDANO_NETWORK="mainnet"
elif [[ "$CI_COMMIT_REF_NAME" == "develop" ]]; then
export CARDANO_NETWORK="testnet"
fi
echo "Building Dockerfile with CARDANO_NETWORK=${CARDANO_NETWORK}"
docker build --network host -f Dockerfile.govtool \
Expand Down

0 comments on commit 2109ef7

Please sign in to comment.