forked from polkadot-js/apps
-
Notifications
You must be signed in to change notification settings - Fork 190
66 lines (58 loc) · 1.76 KB
/
releaser.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
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
name: Releaser
on:
push:
branches-ignore:
- '**'
tags:
- '*'
jobs:
build_explorer:
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@v2
- name: build avail explorer via yarn
shell: bash
run: |
yarn install
yarn run build:www
pushd /home/runner/work/avail-apps/avail-apps/packages/apps/
tar czf avail-explorer.tar.gz build/
popd
- uses: actions/upload-artifact@v2
with:
name: avail-explorer
path: /home/runner/work/avail-apps/avail-apps/packages/apps/avail-explorer.tar.gz
# build image and publish to dockerhub
docker_build_push:
needs: [build_explorer]
runs-on: ubuntu-20.04
steps:
- name: Checkout
uses: actions/checkout@v4
- name: Set up QEMU
uses: docker/setup-qemu-action@v2
- name: Set up Docker Buildx
id: buildx
uses: docker/setup-buildx-action@v2
- name: Prepare
id: prepare
run: |
TAG=${GITHUB_REF#refs/tags/}
echo ::set-output name=tag_name::${TAG}
- name: Login to DockerHub
uses: docker/login-action@v2
with:
username: ${{ secrets.DOCKERHUB_USERNAME }}
password: ${{ secrets.DOCKERHUB_TOKEN }}
- name: Build and push images
uses: docker/build-push-action@v3
with:
builder: ${{ steps.buildx.outputs.name }}
context: .
file: ./docker/Dockerfile
platforms: linux/amd64
push: true
tags: availj/explorer:${{ steps.prepare.outputs.tag_name }}
build-args: |
TURING_URL=wss://turing-rpc.avail.so/ws
MAINNET_URL=wss://mainnet-rpc.avail.so/ws