Skip to content

Commit 4c42ca7

Browse files
committed
fix: do not publish manifest on pull_requests
1 parent a7835f7 commit 4c42ca7

1 file changed

Lines changed: 4 additions & 3 deletions

File tree

.github/workflows/docker-build-push.yaml

Lines changed: 4 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -64,6 +64,7 @@ jobs:
6464
ros_distro: [humble, jazzy]
6565
runs-on: ubuntu-latest
6666
needs: build
67+
if: github.event_name = = "push"
6768
permissions:
6869
packages: write
6970
steps:
@@ -77,6 +78,6 @@ jobs:
7778
- name: Create and push multi-arch manifest for ${{ matrix.ros_distro }}
7879
run: |
7980
docker buildx imagetools create \
80-
-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
81+
-t ${{ env.REGISTRY }}/${{ env.IMAGE_NAME }}:${{ matrix.ros_distro }}-latest \
82+
${{ env.REGISTRY }}/${{ env.IMAGE_NAME }}:${{ matrix.ros_distro }}-amd64-latest \
83+
${{ env.REGISTRY }}/${{ env.IMAGE_NAME }}:${{ matrix.ros_distro }}-arm64-latest

0 commit comments

Comments
 (0)