forked from blockscout/blockscout
-
Notifications
You must be signed in to change notification settings - Fork 0
65 lines (56 loc) · 1.99 KB
/
publish-docker-image.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
# This workflow uses actions that are not certified by GitHub.
# They are provided by a third-party and are governed by
# separate terms of service, privacy policy, and support
# documentation.
name: Publish Docker image
on:
release:
types: [published]
env:
OTP_VERSION: '24.3.4.1'
ELIXIR_VERSION: '1.13.4'
jobs:
push_to_registry:
name: Push Docker image to Docker Hub
runs-on: ubuntu-latest
env:
RELEASE_VERSION: 4.1.5
steps:
- name: Check out the repo
uses: actions/checkout@v3
- name: Set up QEMU
uses: docker/setup-qemu-action@v2
- name: Set up Docker Buildx
uses: docker/setup-buildx-action@v2
- name: Log in to Docker Hub
uses: docker/login-action@v2
with:
username: ${{ secrets.DOCKER_USERNAME }}
password: ${{ secrets.DOCKER_PASSWORD }}
- name: Extract metadata (tags, labels) for Docker
id: meta
uses: docker/metadata-action@v4
with:
images: blockscout/blockscout
- name: Build & Push Docker image
run: |
docker buildx build \
-t blockscout/blockscout:latest \
-t blockscout/blockscout:${{ env.RELEASE_VERSION }} \
-f ./docker/Dockerfile \
--build-arg CACHE_EXCHANGE_RATES_PERIOD="" \
--build-arg DISABLE_READ_API="false" \
--build-arg API_PATH="/" \
--build-arg NETWORK_PATH="/" \
--build-arg DISABLE_WEBAPP="false" \
--build-arg DISABLE_WRITE_API="false" \
--build-arg CACHE_ENABLE_TOTAL_GAS_USAGE_COUNTER="" \
--build-arg WOBSERVER_ENABLED="false" \
--build-arg ADMIN_PANEL_ENABLED="" \
--build-arg CACHE_ADDRESS_WITH_BALANCES_UPDATE_INTERVAL="" \
--build-arg SOCKET_ROOT="" \
--build-arg CHAIN_ID="" \
--build-arg JSON_RPC="" \
--build-arg SUBNETWORK="" \
--build-arg COIN_NAME="" \
--push --platform=linux/arm64,linux/amd64 .