Skip to content

Commit adce9d6

Browse files
fix: add missing fi statement and rename published image (#64)
1 parent 068fe2a commit adce9d6

File tree

4 files changed

+44
-9
lines changed

4 files changed

+44
-9
lines changed

.github/workflows/docker-push.yml

Lines changed: 5 additions & 8 deletions
Original file line numberDiff line numberDiff 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 }}

.github/workflows/docker-test.yml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -6,7 +6,7 @@ jobs:
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

.github/workflows/main.yml

Lines changed: 5 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -45,3 +45,8 @@ jobs:
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
Lines changed: 33 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,33 @@
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 }}

0 commit comments

Comments
 (0)