-
Notifications
You must be signed in to change notification settings - Fork 9
49 lines (38 loc) · 1.41 KB
/
gh-container-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
name: Update container image
on:
push:
branches:
- main
env:
PROCESSOR_NAME: ghcr.io/${{ github.repository_owner }}/blockexplorer-processor:latest
API_SERVER_NAME: ghcr.io/${{ github.repository_owner }}/blockexplorer-api-server:latest
HEALTH_CHECK_NAME: ghcr.io/${{ github.repository_owner }}/health-check:latest
jobs:
push:
runs-on: ubuntu-latest
permissions:
packages: write
contents: read
steps:
- uses: actions/checkout@v3
- name: Log into registry
uses: docker/login-action@v2
with:
registry: ghcr.io
username: ${{ github.actor }}
password: ${{ github.token }}
- name: Build processor image
run: docker build . --target processor -t squid-processor --tag $PROCESSOR_NAME
working-directory: indexers/squid-blockexplorer
- name: Build API server image
run: docker build . --target query-node -t graphql-server --tag $API_SERVER_NAME
working-directory: indexers/squid-blockexplorer
- name: Build Health check image
run: docker build . --file Dockerfile --tag $HEALTH_CHECK_NAME
working-directory: health-check
- name: Push processor image
run: docker push $PROCESSOR_NAME
- name: Push API server image
run: docker push $API_SERVER_NAME
- name: Push Health check image
run: docker push $HEALTH_CHECK_NAME