Skip to content

Commit 364ab2c

Browse files
committed
Only push docker images on push to master
1 parent 0eb78cc commit 364ab2c

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

.github/workflows/build_container_images.yaml

+2-2
Original file line numberDiff line numberDiff line change
@@ -20,9 +20,9 @@ jobs:
2020
- uses: actions/checkout@v4
2121
- name: Build image
2222
run: bin/build_image ${{ matrix.image }}
23-
- if: github.repository_owner == 'ManageIQ'
23+
- if: github.repository_owner == 'ManageIQ' && github.ref_name == 'master'
2424
name: Docker login
2525
run: echo ${{ secrets.DOCKER_REGISTRY_PASSWORD }} | docker login docker.io --password-stdin --username ${{ secrets.DOCKER_REGISTRY_USERNAME }}
26-
- if: github.repository_owner == 'ManageIQ'
26+
- if: github.repository_owner == 'ManageIQ' && github.ref_name == 'master'
2727
name: Push container
2828
run: bin/push_image ${{ matrix.image }}

0 commit comments

Comments
 (0)