Skip to content

Commit ef96c49

Browse files
authored
Merge pull request #12 from bobuhiro11/fix_dockerhub
fix uploading to docker hub
2 parents ec0c652 + e2c66fd commit ef96c49

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)