Skip to content

Commit 6bc653f

Browse files
chore(ci): update dapp deploy and release workflows
1 parent 20463da commit 6bc653f

File tree

3 files changed

+14
-38
lines changed

3 files changed

+14
-38
lines changed

.github/workflows/dapp-deploy.yml

Lines changed: 5 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -9,11 +9,11 @@ on:
99
type: choice
1010
options:
1111
- bellecour-prod
12-
- bellecour-staging
13-
- arbitrum-prod
14-
- arbitrum-staging
15-
- avalanche-prod
16-
- avalanche-staging
12+
- bellecour-dev
13+
- arbitrum-sepolia-prod
14+
- arbitrum-sepolia-dev
15+
- arbitrum-mainnet-prod
16+
- arbitrum-mainnet-dev
1717
sconify-version:
1818
description: 'Version of the sconify image to use'
1919
type: string

.github/workflows/dapp-release.yml

Lines changed: 4 additions & 28 deletions
Original file line numberDiff line numberDiff line change
@@ -25,42 +25,18 @@ jobs:
2525
tag: ${{ needs.extract-tag.outputs.clean_tag }}
2626
sconify-version: 5.9.0-v15
2727

28-
deploy-bellecour-staging:
28+
deploy-arbitrum-sepolia-prod:
2929
uses: ./.github/workflows/reusable-dapp-deploy.yml
3030
needs: [extract-tag]
3131
with:
32-
environment: bellecour-staging
32+
environment: arbitrum-sepolia-prod
3333
tag: ${{ needs.extract-tag.outputs.clean_tag }}
3434
sconify-version: 5.9.0-v15
3535

36-
deploy-arbitrum-prod:
36+
deploy-arbitrum-mainnet-prod:
3737
uses: ./.github/workflows/reusable-dapp-deploy.yml
3838
needs: [extract-tag]
3939
with:
40-
environment: arbitrum-prod
41-
tag: ${{ needs.extract-tag.outputs.clean_tag }}
42-
sconify-version: 5.9.0-v15
43-
44-
deploy-arbitrum-staging:
45-
uses: ./.github/workflows/reusable-dapp-deploy.yml
46-
needs: [extract-tag]
47-
with:
48-
environment: arbitrum-staging
49-
tag: ${{ needs.extract-tag.outputs.clean_tag }}
50-
sconify-version: 5.9.0-v15
51-
52-
deploy-avalanche-prod:
53-
uses: ./.github/workflows/reusable-dapp-deploy.yml
54-
needs: [extract-tag]
55-
with:
56-
environment: avalanche-prod
57-
tag: ${{ needs.extract-tag.outputs.clean_tag }}
58-
sconify-version: 5.9.0-v15
59-
60-
deploy-avalanche-staging:
61-
uses: ./.github/workflows/reusable-dapp-deploy.yml
62-
needs: [extract-tag]
63-
with:
64-
environment: avalanche-staging
40+
environment: arbitrum-mainnet-prod
6541
tag: ${{ needs.extract-tag.outputs.clean_tag }}
6642
sconify-version: 5.9.0-v15

.github/workflows/reusable-dapp-deploy.yml

Lines changed: 5 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -17,7 +17,7 @@ on:
1717
description: 'Version of the sconify image to use'
1818
required: true
1919
type: string
20-
default: ''
20+
default: '5.9.0-v15'
2121
price:
2222
description: 'Sell order price (optional)'
2323
required: false
@@ -96,10 +96,10 @@ jobs:
9696
- name: Deploy dapp contract
9797
env:
9898
WALLET_PRIVATE_KEY: ${{ secrets.WEB3MAIL_DAPP_OWNER_PRIVATEKEY }}
99-
DOCKER_IMAGE_TAG: ${{ needs.sconify.outputs.prod-image-tag }}
100-
CHECKSUM: ${{ needs.sconify.outputs.prod-checksum }}
101-
FINGERPRINT: ${{ needs.sconify.outputs.prod-mrenclave }}
102-
RPC_URL: ${{ vars.RPC_URL }}
99+
DOCKER_IMAGE_TAG: ${{ vars.DEBUG == 'true' && needs.sconify.outputs.debug-image-tag || needs.sconify.outputs.prod-image-tag }}
100+
CHECKSUM: ${{ vars.DEBUG == 'true' && needs.sconify.outputs.debug-checksum || needs.sconify.outputs.prod-checksum }}
101+
FINGERPRINT: ${{ vars.DEBUG == 'true' && needs.sconify.outputs.debug-mrenclave || needs.sconify.outputs.prod-mrenclave }}
102+
RPC_URL: ${{ secrets.RPC_URL }}
103103
run: |
104104
cd deployment-dapp
105105
npm run deploy-dapp

0 commit comments

Comments
 (0)