From 8f311c8e983aae65c6726dbc5f938c7fd92a428f Mon Sep 17 00:00:00 2001 From: teor Date: Thu, 24 Nov 2022 07:29:32 +1000 Subject: [PATCH] Fix network parameter in continous-delivery.yml --- .github/workflows/continous-delivery.yml | 10 +++++----- 1 file changed, 5 insertions(+), 5 deletions(-) diff --git a/.github/workflows/continous-delivery.yml b/.github/workflows/continous-delivery.yml index ecbf7ffd643..4ce3a0f05cd 100644 --- a/.github/workflows/continous-delivery.yml +++ b/.github/workflows/continous-delivery.yml @@ -26,7 +26,7 @@ on: - published env: - NETWORK: Mainnet + DEFAULT_NETWORK: Mainnet GAR_BASE: us-docker.pkg.dev/zealous-zebra/zebra REGION: us-central1 ZONE: us-central1-a @@ -71,7 +71,7 @@ jobs: dockerfile_path: ./docker/Dockerfile dockerfile_target: runtime image_name: zebrad - network: Mainnet + network: ${{ inputs.network || env.DEFAULT_NETWORK }} checkpoint_sync: true rust_backtrace: '1' zebra_skip_ipv6_tests: '1' @@ -89,7 +89,7 @@ jobs: # - on every push/merge to the `main` branch # - on every release, when it's published deploy-nodes: - name: Deploy Mainnet nodes + name: Deploy ${{ inputs.network || env.DEFAULT_NETWORK }} nodes needs: [ build, versioning ] runs-on: ubuntu-latest timeout-minutes: 30 @@ -127,7 +127,7 @@ jobs: --container-mount-disk mount-path="/zebrad-cache",name=zebrad-cache-${{ env.GITHUB_SHA_SHORT }} \ --machine-type ${{ env.MACHINE_TYPE }} \ --scopes cloud-platform \ - --labels=app=zebrad,environment=prod,network=${{env.NETWORK}},github_ref=${{ env.GITHUB_REF_SLUG_URL }} \ + --labels=app=zebrad,environment=prod,network=${{ inputs.network || env.DEFAULT_NETWORK }},github_ref=${{ env.GITHUB_REF_SLUG_URL }} \ --tags zebrad # Check if our destination instance group exists already @@ -208,5 +208,5 @@ jobs: --container-mount-disk mount-path='/zebrad-cache',name=zebrad-cache-${{ env.GITHUB_SHA_SHORT }} \ --machine-type ${{ env.MACHINE_TYPE }} \ --zone ${{ env.ZONE }} \ - --labels=app=zebrad,environment=qa,network=${{env.NETWORK}},github_ref=${{ env.GITHUB_REF_SLUG_URL }} \ + --labels=app=zebrad,environment=qa,network=${{ inputs.network || env.DEFAULT_NETWORK }},github_ref=${{ env.GITHUB_REF_SLUG_URL }} \ --tags zebrad