This repository has been archived by the owner on Dec 4, 2024. It is now read-only.
-
Notifications
You must be signed in to change notification settings - Fork 1
81 lines (62 loc) · 2.69 KB
/
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
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
name: BuildDockerImages
on:
workflow_dispatch:
push:
branches: [ "main" ]
paths:
- 'deployment_utils/*.dockerfile'
- 'deployment_utils/*.sh'
pull_request:
branches: [ "main" ]
paths:
- 'deployment_utils/*.dockerfile'
- 'deployment_utils/*.sh'
jobs:
build_amd64:
runs-on: ubuntu-latest
env:
DOCKER_BUILDKIT: 1
COMPOSE_DOCKER_CLI_BUILD: 1
steps:
- name: Cache Docker images.
uses: ScribeMD/[email protected]
with:
key: docker-amd64
- name: Log in to registry
run: echo "${{ secrets.GITHUB_TOKEN }}" | docker login ghcr.io -u $ --password-stdin
- name: Checkout
uses: actions/checkout@v3
- name: Build AMD64 base
run: docker build deployment_utils/ --file deployment_utils/amd.dockerfile --target base --tag ghcr.io/utahrobotics/lunabotics/base
- name: Push AMD64 base
run: docker image push ghcr.io/utahrobotics/lunabotics/base
- name: Build AMD64 lunabase
run: docker build deployment_utils/ --file deployment_utils/amd.dockerfile --target lunabase --tag ghcr.io/utahrobotics/lunabotics/lunabase --build-arg TNVC_URL=https://sourceforge.net/projects/turbovnc/files/3.0.2/turbovnc_3.0.2_amd64.deb/download
- name: Push AMD64 lunabase
run: docker image push ghcr.io/utahrobotics/lunabotics/lunabase
# build_arm:
# runs-on: ubuntu-latest
# env:
# DOCKER_BUILDKIT: 1
# COMPOSE_DOCKER_CLI_BUILD: 1
# steps:
# - name: Cache Docker images.
# uses: ScribeMD/[email protected]
# with:
# key: docker-arm
# - 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 registry
# run: echo "${{ secrets.GITHUB_TOKEN }}" | docker login ghcr.io -u $ --password-stdin
# - name: Checkout
# uses: actions/checkout@v3
# - name: Build ARM64 base
# run: docker build deployment_utils/ --file deployment_utils/arm.dockerfile --target base --tag ghcr.io/utahrobotics/lunabotics/base_arm
# - name: Push ARM64 base
# run: docker image push ghcr.io/utahrobotics/lunabotics/base_arm
# - name: Build ARM64 lunabase
# run: docker build deployment_utils/ --file deployment_utils/arm.dockerfile --target lunabase --tag ghcr.io/utahrobotics/lunabotics/lunabase_arm --build-arg TNVC_URL=https://sourceforge.net/projects/turbovnc/files/3.0.2/turbovnc_3.0.2_arm64.deb/download
# - name: Push ARM64 lunabase
# run: docker image push ghcr.io/utahrobotics/lunabotics/lunabase_arm