Build and publish the gochain image #34
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
name: Build and publish the gochain image | |
on: | |
workflow_run: | |
workflows: ["Release NPM Package"] | |
types: [completed] | |
env: | |
GOLOOP_VERSION: v1.3.3 | |
jobs: | |
build-goloop-image: | |
runs-on: ubuntu-latest | |
permissions: | |
contents: read | |
packages: write | |
steps: | |
- name: Clone goloop repository | |
run: git clone https://github.com/icon-project/goloop.git | |
- name: Checkout the release version | |
run: git checkout ${{ env.GOLOOP_VERSION }} | |
working-directory: goloop | |
- name: Log in to docker hub registry | |
uses: docker/login-action@v2 | |
with: | |
username: ${{ secrets.DOCKER_HUB_USERNAME }} | |
password: ${{ secrets.DOCKER_HUB_ACCESS_TOKEN }} | |
- name: Build gochain-image | |
run: make gochain-image | |
working-directory: goloop | |
- name: Push gochain-image to docker hub | |
run: | | |
docker tag goloop/gochain:latest iconcommunity/gochain:latest | |
docker push iconcommunity/gochain:latest | |
working-directory: goloop | |
- name: Build gochain-icon-image | |
run: make gochain-icon-image | |
working-directory: goloop | |
- name: Push gochain-icon-image to docker hub | |
run: | | |
docker tag goloop/gochain-icon:latest iconcommunity/gochain-icon:latest | |
docker push iconcommunity/gochain-icon:latest | |
working-directory: goloop |