Skip to content

Commit

Permalink
Add CI naming, env failure mode
Browse files Browse the repository at this point in the history
  • Loading branch information
alnoki committed Nov 27, 2024
1 parent b14d692 commit 9994d18
Show file tree
Hide file tree
Showing 2 changed files with 4 additions and 2 deletions.
4 changes: 3 additions & 1 deletion .github/workflows/fallback-deploy.file.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -13,10 +13,12 @@ jobs:
YQ_BINARY="${YQ_BASE_URL}/${YQ_VERSION}/yq_linux_amd64"
sudo wget -O /usr/local/bin/yq "$YQ_BINARY"
sudo chmod +x /usr/local/bin/yq
- run: |
- name: 'Verify fallback and production files same except `Environment`'
run: |
diff \
<(yq 'del(.parameters.Environment)' "$PRODUCTION_FILE") \
<(yq 'del(.parameters.Environment)' "$FALLBACK_FILE")
- name: 'Verify `Environment` in fallback and production files.'
- run: |
PROD_ENV=$(yq '.parameters.Environment' "$PRODUCTION_FILE")
FALLBACK_ENV=$(yq '.parameters.Environment' "$FALLBACK_FILE")
Expand Down
2 changes: 1 addition & 1 deletion src/cloud-formation/deploy-indexer-production.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -21,7 +21,7 @@ parameters:
EnableWafRulesGeneral: 'false'
EnableWafRulesRestApi: 'false'
EnableWafRulesWebSocket: 'false'
Environment: 'production'
Environment: 'foo'
Network: 'mainnet'
ProcessorImageVersion: '1.0.1'
VpcStackName: 'emoji-vpc'
Expand Down

0 comments on commit 9994d18

Please sign in to comment.