@@ -14,24 +14,40 @@ jobs:
14
14
steps :
15
15
- uses : actions/checkout@v4
16
16
17
+ - name : Set up QEMU
18
+ uses : docker/setup-qemu-action@v3
19
+
20
+ - name : Set up Docker Buildx
21
+ uses : docker/setup-buildx-action@v3
22
+
17
23
- name : Login to Docker Hub
18
24
uses : docker/login-action@v3
19
25
with :
20
26
username : ${{ secrets.DOCKERHUB_USERNAME }}
21
27
password : ${{ secrets.DOCKERHUB_TOKEN }}
22
28
29
+ - name : Extract tag name
30
+ id : tag
31
+ run : echo "TAG=${GITHUB_REF#refs/tags/}" >> $GITHUB_OUTPUT
32
+
23
33
- name : Build and push Frontend
24
34
uses : docker/build-push-action@v5
25
35
with :
26
36
context : ./frontend
27
37
file : ./frontend/Dockerfile.prod
28
38
push : true
29
- tags : bangertech/bambucam-frontend:latest
39
+ platforms : linux/amd64,linux/arm64
40
+ tags : |
41
+ bangertech/bambucam-frontend:latest
42
+ bangertech/bambucam-frontend:${{ steps.tag.outputs.TAG }}
30
43
31
44
- name : Build and push Backend
32
45
uses : docker/build-push-action@v5
33
46
with :
34
47
context : ./backend
35
48
file : ./backend/Dockerfile.prod
36
49
push : true
37
- tags : bangertech/bambucam-backend:latest
50
+ platforms : linux/amd64,linux/arm64
51
+ tags : |
52
+ bangertech/bambucam-backend:latest
53
+ bangertech/bambucam-backend:${{ steps.tag.outputs.TAG }}
0 commit comments