Skip to content

Commit c4288f2

Browse files
authored
Merge pull request #33 from posit-dev/fix-dockerhub-repo-names
fix(ci): push to GHCR on main branch before Docker Hub
2 parents 8529117 + bb31e50 commit c4288f2

File tree

1 file changed

+5
-0
lines changed

1 file changed

+5
-0
lines changed

.github/workflows/build.yml

Lines changed: 5 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -174,6 +174,11 @@ jobs:
174174
username: ${{ github.actor }}
175175
password: ${{ secrets.GITHUB_TOKEN }}
176176

177+
- name: Push to GHCR (main branch)
178+
if: github.ref == 'refs/heads/main'
179+
run: |
180+
docker push "${{ steps.image-tag.outputs.full-image }}"
181+
177182
- name: Push to GHCR (for PRs - adhoc testing)
178183
if: github.event_name == 'pull_request'
179184
run: |

0 commit comments

Comments
 (0)