-
Notifications
You must be signed in to change notification settings - Fork 3
51 lines (40 loc) · 1.38 KB
/
build-gochain.yml
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
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