Skip to content

Commit e2c66fd

Browse files
committed
fix uploading to docker hub
Signed-off-by: Nobuhiro MIKI <nob@bobuhiro11.net>
1 parent ec0c652 commit e2c66fd

1 file changed

Lines changed: 2 additions & 2 deletions

File tree

.github/workflows/action.yaml

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -43,8 +43,8 @@ jobs:
4343
with:
4444
username: ${{ secrets.DOCKERHUB_USERNAME }}
4545
password: ${{ secrets.DOCKERHUB_TOKEN }}
46-
- name: Push to Docker Hub
47-
if: github.event_name != 'schedule'
46+
- name: Push to Docker Hub for PR
47+
if: github.ref != 'refs/heads/main' && github.event_name != 'schedule'
4848
run: |
4949
docker commit controller bobuhiro11/containerized-devstack-controller:${{ github.sha }}
5050
docker commit compute-1 bobuhiro11/containerized-devstack-compute-1:${{ github.sha }}

0 commit comments

Comments
 (0)