-
Notifications
You must be signed in to change notification settings - Fork 8
58 lines (49 loc) · 1.39 KB
/
build-container.yml
File metadata and controls
58 lines (49 loc) · 1.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
name: Build Docker Container
on:
push:
branches:
- main
workflow_dispatch: # Manual trigger
jobs:
build:
runs-on: ubuntu-latest
steps:
- name: Checkout repository
uses: actions/checkout@v2
with:
submodules: true
- name: Set up Docker Buildx
uses: docker/setup-buildx-action@v1
- name: Log in to Docker Hub
uses: docker/login-action@v1
with:
username: c2sm
password: ${{ secrets.DOCKER_PASSWORD }}
- name: Build AMD64 image
uses: docker/build-push-action@v6
with:
context: .
file: ./Dockerfile
push: false
tags: c2sm/probtest:amd64
platforms: linux/amd64
outputs: type=oci,dest=probtest_image_amd64.tar
- name: Upload AMD64 image
uses: actions/upload-artifact@v4
with:
name: probtest_image_amd64
path: probtest_image_amd64.tar
- name: Build ARM64 image
uses: docker/build-push-action@v6
with:
context: .
file: ./Dockerfile
push: false
tags: c2sm/probtest:arm64
platforms: linux/arm64
outputs: type=oci,dest=probtest_image_arm64.tar
- name: Upload ARM64 image
uses: actions/upload-artifact@v4
with:
name: probtest_image_arm64
path: probtest_image_arm64.tar