File tree Expand file tree Collapse file tree 4 files changed +44
-9
lines changed Expand file tree Collapse file tree 4 files changed +44
-9
lines changed Original file line number Diff line number Diff line change @@ -25,16 +25,13 @@ jobs:
2525 echo "computed_tag=${latest_tag}+dev+${GITHUB_SHA}" >> $GITHUB_OUTPUT
2626 else
2727 echo "computed_tag=${GITHUB_REF_NAME}" >> $GITHUB_OUTPUT
28+ fi
2829
2930 build :
3031 needs : compute-tag
31- uses :
iExecBlockchainComputing/github-actions-workflows/ .github/workflows/[email protected] 32+ uses : ./ .github/workflows/reusable-subgraph-deployer-docker.yml
3233 with :
33- image-name : ' iexechub/voucher-subgraph-deployer'
34- image-tag : ${{ needs.compute-tag.outputs.computed_tag }}
35- security-scan : false
36- hadolint : false
37- push : true
34+ tag : ${{ needs.compute-tag.outputs.computed_tag }}
3835 secrets :
39- username : ${{ secrets.DOCKERHUB_USERNAME }}
40- password : ${{ secrets.DOCKERHUB_PAT }}
36+ docker- username : ${{ secrets.DOCKERHUB_USERNAME }}
37+ docker- password : ${{ secrets.DOCKERHUB_PAT }}
Original file line number Diff line number Diff line change 66 build-test :
77 uses :
iExecBlockchainComputing/github-actions-workflows/.github/workflows/[email protected] 88 with :
9- image-name : ' iexechub/voucher -subgraph-deployer'
9+ image-name : ' iexechub/poco -subgraph-deployer'
1010 image-tag : ${{ github.sha }}
1111 push : false
1212 security-scan : true
Original file line number Diff line number Diff line change 4545
4646 - name : Run integration tests
4747 run : npm run test:e2e
48+
49+ deployer-docker-dry-run :
50+ uses : ./.github/workflows/reusable-subgraph-deployer-docker.yml
51+ with :
52+ dry-run : true
Original file line number Diff line number Diff line change 1+ name : docker workflow for Poco subgraph deployer
2+
3+ on :
4+ workflow_call :
5+ inputs :
6+ dry-run :
7+ description : ' Run in dry-run mode (the docker image will not be published)'
8+ default : false
9+ type : boolean
10+ tag :
11+ description : ' Tag of Docker Image'
12+ default : ' latest'
13+ type : string
14+ secrets :
15+ docker-username :
16+ description : ' Docker registry username (required unless `dry-run: true`)'
17+ required : false
18+ docker-password :
19+ description : ' Docker registry password or PAT (required unless `dry-run: true`)'
20+ required : false
21+
22+ jobs :
23+ docker-publish :
24+ uses :
iExecBlockchainComputing/github-actions-workflows/.github/workflows/[email protected] 25+ with :
26+ image-name : ' iexechub/poco-subgraph-deployer'
27+ security-scan : false
28+ hadolint : false
29+ push : ${{ !inputs.dry-run }}
30+ image-tag : ${{ inputs.tag }}
31+ secrets :
32+ username : ${{ secrets.docker-username }}
33+ password : ${{ secrets.docker-password }}
You can’t perform that action at this time.
0 commit comments