Skip to content
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
13 changes: 5 additions & 8 deletions .github/workflows/docker-push.yml
Original file line number Diff line number Diff line change
Expand Up @@ -25,16 +25,13 @@ jobs:
echo "computed_tag=${latest_tag}+dev+${GITHUB_SHA}" >> $GITHUB_OUTPUT
else
echo "computed_tag=${GITHUB_REF_NAME}" >> $GITHUB_OUTPUT
fi

build:
needs: compute-tag
uses: iExecBlockchainComputing/github-actions-workflows/.github/workflows/docker-build.yml@docker-build-v2.3.1
uses: ./.github/workflows/reusable-subgraph-deployer-docker.yml
with:
image-name: 'iexechub/voucher-subgraph-deployer'
image-tag: ${{ needs.compute-tag.outputs.computed_tag }}
security-scan: false
hadolint: false
push: true
tag: ${{ needs.compute-tag.outputs.computed_tag }}
secrets:
username: ${{ secrets.DOCKERHUB_USERNAME }}
password: ${{ secrets.DOCKERHUB_PAT }}
docker-username: ${{ secrets.DOCKERHUB_USERNAME }}
docker-password: ${{ secrets.DOCKERHUB_PAT }}
2 changes: 1 addition & 1 deletion .github/workflows/docker-test.yml
Original file line number Diff line number Diff line change
Expand Up @@ -6,7 +6,7 @@ jobs:
build-test:
uses: iExecBlockchainComputing/github-actions-workflows/.github/workflows/docker-build.yml@docker-build-v2.3.1
with:
image-name: 'iexechub/voucher-subgraph-deployer'
image-name: 'iexechub/poco-subgraph-deployer'
image-tag: ${{ github.sha }}
push: false
security-scan: true
5 changes: 5 additions & 0 deletions .github/workflows/main.yml
Original file line number Diff line number Diff line change
Expand Up @@ -45,3 +45,8 @@ jobs:

- name: Run integration tests
run: npm run test:e2e

deployer-docker-dry-run:
uses: ./.github/workflows/reusable-subgraph-deployer-docker.yml
with:
dry-run: true
33 changes: 33 additions & 0 deletions .github/workflows/reusable-subgraph-deployer-docker.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,33 @@
name: docker workflow for Poco subgraph deployer

on:
workflow_call:
inputs:
dry-run:
description: 'Run in dry-run mode (the docker image will not be published)'
default: false
type: boolean
tag:
description: 'Tag of Docker Image'
default: 'latest'
type: string
secrets:
docker-username:
description: 'Docker registry username (required unless `dry-run: true`)'
required: false
docker-password:
description: 'Docker registry password or PAT (required unless `dry-run: true`)'
required: false

jobs:
docker-publish:
uses: iExecBlockchainComputing/github-actions-workflows/.github/workflows/docker-build.yml@docker-build-v2.3.1
with:
image-name: 'iexechub/poco-subgraph-deployer'
security-scan: false
hadolint: false
push: ${{ !inputs.dry-run }}
image-tag: ${{ inputs.tag }}
secrets:
username: ${{ secrets.docker-username }}
password: ${{ secrets.docker-password }}