-
Notifications
You must be signed in to change notification settings - Fork 6
49 lines (40 loc) · 1.69 KB
/
build-separately.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
name: Docker build
on:
workflow_dispatch:
jobs:
linux-x64:
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@v3
- name: Build linux-x64 image
run: docker build -f ./mcmt-dockerfiles/x64-mcmt.dockerfile -t nivensie/spotit3d:mcmt-latest-x64
- name: Dockerhub login
uses: docker/login-action@v2
with:
username: ${{ env.DOCKER_HUB_USER }}
password: ${{ secrets.DOCKER_HUB_TOKEN }}
- name: Push to Dockerhub registry
run: |
docker push nivensie/spotit3d:mcmt-latest-x64
docker manifest create nivensie/spotit3d:mcmt-latest nivensie/spotit3d:mcmt-latest-x64
docker manifest annotate --arch amd64 nivensie/spotit3d:mcmt-latest nivensie/spotit3d:mcmt-latest-x64
docker manifest inspect nivensie/spotit3d:mcmt-latest
docker manifest push nivensie/spotit3d:mcmt-latest
linux-arm64:
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@v3
- name: Build linux-arm64 image
run: docker build -f ./mcmt-dockerfiles/arm64-mcmt.dockerfile -t nivensie/spotit3d:mcmt-latest-arm64
- name: Dockerhub login
uses: docker/login-action@v2
with:
username: ${{ env.DOCKER_HUB_USER }}
password: ${{ secrets.DOCKER_HUB_TOKEN }}
- name: Push to Dockerhub registry
run: |
docker push nivensie/spotit3d:mcmt-latest-arm64
docker manifest create nivensie/spotit3d:mcmt-latest --amend nivensie/spotit3d:mcmt-latest-arm64
docker manifest annotate --arch arm64 nivensie/spotit3d:mcmt-latest nivensie/spotit3d:mcmt-latest-arm64
docker manifest inspect nivensie/spotit3d:mcmt-latest
docker manifest push nivensie/spotit3d:mcmt-latest