We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
1 parent a7835f7 commit 4c42ca7Copy full SHA for 4c42ca7
1 file changed
.github/workflows/docker-build-push.yaml
@@ -64,6 +64,7 @@ jobs:
64
ros_distro: [humble, jazzy]
65
runs-on: ubuntu-latest
66
needs: build
67
+ if: github.event_name = = "push"
68
permissions:
69
packages: write
70
steps:
@@ -77,6 +78,6 @@ jobs:
77
78
- name: Create and push multi-arch manifest for ${{ matrix.ros_distro }}
79
run: |
80
docker buildx imagetools create \
- -t ${{ env.REGISTRY }}/${{ env.IMAGE_NAME }}:${{ matrix.ros_distro }} \
81
- ${{ env.REGISTRY }}/${{ env.IMAGE_NAME }}:${{ matrix.ros_distro }}-amd64 \
82
- ${{ env.REGISTRY }}/${{ env.IMAGE_NAME }}:${{ matrix.ros_distro }}-arm64
+ -t ${{ env.REGISTRY }}/${{ env.IMAGE_NAME }}:${{ matrix.ros_distro }}-latest \
+ ${{ env.REGISTRY }}/${{ env.IMAGE_NAME }}:${{ matrix.ros_distro }}-amd64-latest \
83
+ ${{ env.REGISTRY }}/${{ env.IMAGE_NAME }}:${{ matrix.ros_distro }}-arm64-latest
0 commit comments