Skip to content

Commit

Permalink
fix(ci): allow to specify the required cached state disk type
Browse files Browse the repository at this point in the history
  • Loading branch information
gustavovalverde committed Sep 26, 2024
1 parent 484aed9 commit 7a8f471
Showing 1 changed file with 11 additions and 2 deletions.
13 changes: 11 additions & 2 deletions .github/workflows/cd-deploy-nodes-gcp.yml
Original file line number Diff line number Diff line change
Expand Up @@ -33,6 +33,14 @@ on:
default: 'Mainnet'
description: 'Network to deploy: Mainnet or Testnet'
required: true
cached_disk_type:
default: tip
description: 'Type of cached disk to use'
required: true
type: choice
options:
- tip
- checkpoint
log_file:
default: ''
description: 'Log to a file path rather than standard output'
Expand Down Expand Up @@ -185,8 +193,8 @@ jobs:
with:
network: ${{ inputs.network || vars.ZCASH_NETWORK }}
disk_prefix: zebrad-cache
disk_suffix: tip
prefer_main_cached_state: true
disk_suffix: ${{ inputs.cached_disk_type || 'tip' }}
prefer_main_cached_state: (github.event_name == 'push' && github.ref_name == 'main' && true) || false

# Deploy Managed Instance Groups (MiGs) for Mainnet and Testnet,
# with one node in the configured GCP region.
Expand Down Expand Up @@ -216,6 +224,7 @@ jobs:
permissions:
contents: 'read'
id-token: 'write'
# TODO: Remove `|| github.event_name == 'workflow_dispatch'` condition before merging
if: ${{ !cancelled() && !failure() && ((github.event_name == 'push' && github.ref_name == 'main') || github.event_name == 'release') || github.event_name == 'workflow_dispatch' }}

steps:
Expand Down

0 comments on commit 7a8f471

Please sign in to comment.