@@ -27,13 +27,13 @@ jobs:
27
27
28
28
- name : Set up Docker Buildx
29
29
uses : docker/setup-buildx-action@v2
30
-
30
+
31
31
- name : Login to Docker Hub
32
32
uses : docker/login-action@v2
33
33
with :
34
34
username : ${{ secrets.DOCKER_USERNAME }}
35
35
password : ${{ secrets.DOCKER_PASSWORD }}
36
-
36
+
37
37
- name : Build and push
38
38
uses : docker/build-push-action@v4
39
39
with :
@@ -59,14 +59,14 @@ jobs:
59
59
with :
60
60
username : ${{ secrets.DOCKER_USERNAME }}
61
61
password : ${{ secrets.DOCKER_PASSWORD }}
62
-
62
+
63
63
- name : Build and push ARM
64
64
uses : docker/build-push-action@v4
65
65
with :
66
66
context : .
67
67
platforms : ' linux/arm64'
68
68
push : true
69
- tags : nethermindeth/juno:${{ github.event.inputs.tag }}-arm
69
+ tags : nethermindeth/juno:${{ github.event.inputs.tag }}-arm64
70
70
71
71
- name : Cleanup self-hosted
72
72
run : |
@@ -86,15 +86,12 @@ jobs:
86
86
username : ${{ secrets.DOCKER_USERNAME }}
87
87
password : ${{ secrets.DOCKER_PASSWORD }}
88
88
89
- - name : Create and push manifest
89
+ - name : Create and push manifest using buildx
90
90
run : |
91
- export DOCKER_CLI_EXPERIMENTAL=enabled
92
- docker manifest create nethermind/juno:${{ github.event.inputs.tag }} \
93
- nethermindeth/juno:${{ github.event.inputs.tag }} \
94
- nethermindeth/juno:${{ github.event.inputs.tag }}-arm
95
- docker manifest annotate nethermind/juno:${{ github.event.inputs.tag }} nethermindeth/juno:${{ github.event.inputs.tag }}-arm --os linux --arch arm64
96
- docker manifest push nethermind/juno:${{ github.event.inputs.tag }}
97
-
91
+ docker buildx imagetools create nethermindeth/juno:${{ github.event.inputs.tag }} \
92
+ nethermindeth/juno:${{ github.event.inputs.tag }}-arm64 \
93
+ --tag nethermind/juno:${{ github.event.inputs.tag }}
94
+
98
95
- name : Clean up environment
99
96
if : always()
100
97
run : |
0 commit comments