generated from jakim929/dapp-starter-with-backend
-
Notifications
You must be signed in to change notification settings - Fork 0
64 lines (57 loc) · 1.97 KB
/
build-and-upload-all-services.yaml
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
name: Build and upload docker images for all services
on:
workflow_dispatch:
push:
branches:
- main
jobs:
skandha:
uses: ./.github/workflows/build-and-upload-bundler-service.yaml
secrets: inherit
with:
bundler-name: skandha
transeptor-bundler:
uses: ./.github/workflows/build-and-upload-bundler-service.yaml
secrets: inherit
with:
bundler-name: transeptor-bundler
local-services:
name: Build and publish images for bundler-reverse-proxy and anvil-setup
runs-on: ubuntu-latest
environment: dockerhub
steps:
- name: Check out the repo
uses: actions/checkout@v4
with:
submodules: true
- name: Log in to Docker Hub
uses: docker/login-action@v2
with:
username: ${{ secrets.DOCKER_HUB_ACCESS_TOKEN_USERNAME }}
password: ${{ secrets.DOCKER_HUB_ACCESS_TOKEN_SECRET }}
- name: Set up QEMU
uses: docker/setup-qemu-action@v2
- name: Set up Docker Buildx
uses: docker/setup-buildx-action@v2
- name: Build and push anvil-setup
uses: docker/build-push-action@v4
with:
context: .
file: ./Dockerfile
target: anvil-setup
platforms: linux/amd64,linux/arm64
push: true
tags: |
${{ secrets.DOCKER_HUB_ACCESS_TOKEN_USERNAME }}/aa-playground:anvil-setup-${{ github.sha }}
${{ secrets.DOCKER_HUB_ACCESS_TOKEN_USERNAME }}/aa-playground:anvil-setup-latest
- name: Build and push bundler-reverse-proxy
uses: docker/build-push-action@v4
with:
context: .
file: ./Dockerfile
target: bundler-reverse-proxy
platforms: linux/amd64,linux/arm64
push: true
tags: |
${{ secrets.DOCKER_HUB_ACCESS_TOKEN_USERNAME }}/aa-playground:bundler-reverse-proxy-${{ github.sha }}
${{ secrets.DOCKER_HUB_ACCESS_TOKEN_USERNAME }}/aa-playground:bundler-reverse-proxy-latest