File tree 2 files changed +10
-7
lines changed
2 files changed +10
-7
lines changed Original file line number Diff line number Diff line change 64
64
if : github.event_name == 'release' && github.event.action == 'published'
65
65
run : |
66
66
docker tag "ghcr.io/ansible/ansible-devspaces:${GITHUB_SHA}" "ghcr.io/ansible/ansible-devspaces:${{ github.event.release.tag_name }}"
67
+ docker tag "ghcr.io/ansible/ansible-devspaces:${GITHUB_SHA}" "ghcr.io/ansible/ansible-devspaces:latest"
67
68
docker push "ghcr.io/ansible/ansible-devspaces:${{ github.event.release.tag_name }}"
69
+ docker push "ghcr.io/ansible/ansible-devspaces:latest"
68
70
69
71
publish-wheel :
70
72
needs :
Original file line number Diff line number Diff line change @@ -42,14 +42,15 @@ if [ "--publish" == "${1:-}" ]; then
42
42
${ADT_CONTAINER_ENGINE} pull -q " ghcr.io/ansible/community-ansible-dev-tools-tmp:${GITHUB_SHA:- } -arm64"
43
43
${ADT_CONTAINER_ENGINE} pull -q " ghcr.io/ansible/community-ansible-dev-tools-tmp:${GITHUB_SHA:- } -amd64"
44
44
45
- TAG= ghcr.io/ansible/community-ansible-dev-tools:${2:- }
46
- ${ADT_CONTAINER_ENGINE} manifest create " $TAG " --amend " ghcr.io/ansible/community-ansible-dev-tools-tmp:${GITHUB_SHA:- } -amd64" --amend " ghcr.io/ansible/community-ansible-dev-tools-tmp:${GITHUB_SHA:- } -arm64"
47
- ${ADT_CONTAINER_ENGINE} manifest annotate --arch arm64 " $TAG " " ghcr.io/ansible/community-ansible-dev-tools-tmp:${GITHUB_SHA:- } -arm64"
45
+ for TAG in ghcr.io/ansible/community-ansible-dev-tools:${2:- } ghcr.io/ansible/community-ansible-dev-tools:latest ; do
46
+ ${ADT_CONTAINER_ENGINE} manifest create " $TAG " --amend " ghcr.io/ansible/community-ansible-dev-tools-tmp:${GITHUB_SHA:- } -amd64" --amend " ghcr.io/ansible/community-ansible-dev-tools-tmp:${GITHUB_SHA:- } -arm64"
47
+ ${ADT_CONTAINER_ENGINE} manifest annotate --arch arm64 " $TAG " " ghcr.io/ansible/community-ansible-dev-tools-tmp:${GITHUB_SHA:- } -arm64"
48
48
49
- # We push only when there is a release, and that is when $2 is not the same as GITHUB_SHA
50
- if [ " --dry" != " ${3:- } " ]; then
51
- ${ADT_CONTAINER_ENGINE} manifest push " $TAG "
52
- fi
49
+ # We push only when there is a release, and that is when $2 is not the same as GITHUB_SHA
50
+ if [ " --dry" != " ${3:- } " ]; then
51
+ ${ADT_CONTAINER_ENGINE} manifest push " $TAG "
52
+ fi
53
+ done
53
54
exit 0
54
55
fi
55
56
You can’t perform that action at this time.
0 commit comments