-
-
Notifications
You must be signed in to change notification settings - Fork 352
57 lines (42 loc) · 1.43 KB
/
docker.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
# When git main branch changes it will build a image based on the main branch, the tag of the image will be latest.
# When a git semver tag is pushed it will build a image based on it, the tag will be the same as git's.
# It will do nothing on other git events.
# For the usage of the image, check lib/examples/launch-managed .
name: Release docker image
on: [push, pull_request]
permissions:
packages: write
jobs:
# TODO: we should merge job docker-amd and job docker-arm once the github actions fix their issue with cross-platform building.
docker-amd:
runs-on: ubuntu-22.04
steps:
- uses: actions/setup-go@v5
with:
go-version: 1.22
- uses: docker/setup-qemu-action@v3
- uses: actions/checkout@v4
- run: go run ./lib/docker $GITHUB_REF
env:
GITHUB_TOKEN: ${{secrets.GITHUB_TOKEN}}
- uses: actions/upload-artifact@v4
with:
name: review-fonts-docker
path: tmp/fonts.pdf
- uses: actions/upload-artifact@v4
if: ${{ always() }}
with:
name: cdp-log-docker
path: tmp/cdp-log
docker-arm:
runs-on: ubuntu-22.04
steps:
- uses: actions/setup-go@v5
with:
go-version: 1.22
- uses: docker/setup-qemu-action@v3
- uses: actions/checkout@v4
- run: go run ./lib/docker $GITHUB_REF
env:
GITHUB_TOKEN: ${{secrets.GITHUB_TOKEN}}
ARCH: arm