41
41
cache-to : |
42
42
type=gha,scope=${{ matrix.platform }},mode=max
43
43
type=registry,ref=thirdweb/engine:buildcache-${{ matrix.platform }},mode=max
44
- tags : thirdweb/engine:${{ github.event.release.tag_name }}-${{ matrix.platform }}
44
+ tags : |
45
+ thirdweb/engine:${{ github.event.release.tag_name }}-${{ matrix.platform == 'linux/amd64' && 'amd64' || 'arm64' }}
46
+ ${{ env.LATEST_TAG != '' && format('thirdweb/engine:latest-{0}', matrix.platform == 'linux/amd64' && 'amd64' || 'arm64') || '' }}
45
47
build-args : |
46
48
ENGINE_VERSION=${{ github.event.release.tag_name }}
47
49
@@ -57,17 +59,17 @@ jobs:
57
59
username : ${{ secrets.DOCKER_USERNAME }}
58
60
password : ${{ secrets.DOCKER_PASSWORD }}
59
61
60
- - name : Create and Push Multi-arch Manifest
62
+ - name : Create and Push Multi-arch Manifest (release tag)
61
63
run : |
62
64
docker manifest create thirdweb/engine:${{ github.event.release.tag_name }} \
63
- thirdweb/engine:${{ github.event.release.tag_name }}-linux/ amd64 \
64
- thirdweb/engine:${{ github.event.release.tag_name }}-linux/ arm64
65
+ thirdweb/engine:${{ github.event.release.tag_name }}-amd64 \
66
+ thirdweb/engine:${{ github.event.release.tag_name }}-arm64
65
67
docker manifest push thirdweb/engine:${{ github.event.release.tag_name }}
66
68
67
69
- name : Create and Push Latest Tag (if applicable)
68
70
if : ${{ env.LATEST_TAG != '' }}
69
71
run : |
70
72
docker manifest create thirdweb/engine:latest \
71
- thirdweb/engine:${{ github.event.release.tag_name }}-linux/ amd64 \
72
- thirdweb/engine:${{ github.event.release.tag_name }}-linux/ arm64
73
- docker manifest push thirdweb/engine:latest
73
+ thirdweb/engine:latest- amd64 \
74
+ thirdweb/engine:latest- arm64
75
+ docker manifest push thirdweb/engine:latest
0 commit comments