forked from paradigmxyz/centaur
-
Notifications
You must be signed in to change notification settings - Fork 0
81 lines (77 loc) · 2.39 KB
/
Copy pathdocker.yml
File metadata and controls
81 lines (77 loc) · 2.39 KB
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
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
name: Docker
on:
push:
tags:
- v**
workflow_dispatch:
# Main/tags keep optimized release images.
env:
RUST_BUILD_PROFILE: release
jobs:
build-and-push:
runs-on:
group: scroll-reth-runner-group
strategy:
fail-fast: false
matrix:
include:
- image: centaur-api-rs
context: .
dockerfile: services/api-rs/Dockerfile
target: ""
- image: centaur-slackbotv2
context: .
dockerfile: services/slackbotv2/Dockerfile
target: ""
- image: centaur-linearbot
context: .
dockerfile: services/linearbot/Dockerfile
target: ""
- image: centaur-discordbot
context: .
dockerfile: services/discordbot/Dockerfile
target: ""
- image: centaur-teamsbot
context: .
dockerfile: services/teamsbot/Dockerfile
target: ""
- image: centaur-agent
context: .
dockerfile: services/sandbox/Dockerfile
target: sandbox
- image: centaur-iron-proxy
context: .
dockerfile: services/iron-proxy/Dockerfile
target: ""
- image: centaur-console
context: services/console
dockerfile: services/console/Dockerfile
target: ""
steps:
- name: Checkout code
uses: actions/checkout@v4
- name: Set up QEMU
uses: docker/setup-qemu-action@v3
- name: Set up Docker Buildx
uses: docker/setup-buildx-action@v3
- name: Login to Docker Hub
uses: docker/login-action@v3
with:
username: ${{ secrets.DOCKERHUB_USERNAME }}
password: ${{ secrets.DOCKERHUB_TOKEN }}
- name: Build and push
uses: docker/build-push-action@v6
env:
REPOSITORY: ${{ matrix.image }}
IMAGE_TAG: ${{ github.ref_name }}
with:
platforms: linux/amd64,linux/arm64
context: ${{ matrix.context }}
file: ${{ matrix.dockerfile }}
target: ${{ matrix.target }}
push: true
build-args: |
RUST_BUILD_PROFILE=${{ env.RUST_BUILD_PROFILE }}
tags: |
${{ secrets.DOCKERHUB_USERNAME }}/${{ env.REPOSITORY }}:${{ env.IMAGE_TAG }}
${{ secrets.DOCKERHUB_USERNAME }}/${{ env.REPOSITORY }}:latest