fix(release): update docker push action to use ghcr.io

Updates the release-sandbox workflow to use the push-docker action,
which is configured to push to ghcr.io.

Also updates the push-docker action to use `github.repository_owner`
as the username for ghcr.io login, which is the recommended practice.
This commit is contained in:
mkorwel
2025-10-23 09:30:32 -07:00
parent 0d55843c4a
commit dea79901a5
2 changed files with 3 additions and 6 deletions
+1 -1
View File
@@ -46,7 +46,7 @@ runs:
uses: 'docker/login-action@184bdaa0721073962dff0199f1fb9940f07167d1' # ratchet:docker/login-action@v3
with:
registry: 'ghcr.io'
username: '${{ inputs.github-actor }}'
username: '${{ github.repository_owner }}'
password: '${{ inputs.github-secret }}'
- name: 'Get branch name'
id: 'branch_name'
+2 -5
View File
@@ -28,15 +28,12 @@ jobs:
ref: '${{ github.event.inputs.ref || github.sha }}'
fetch-depth: 0
- name: 'Push'
uses: './.github/actions/push-sandbox'
uses: './.github/actions/push-docker'
with:
dockerhub-username: '${{ secrets.DOCKER_SERVICE_ACCOUNT_NAME }}'
dockerhub-token: '${{ secrets.DOCKER_SERVICE_ACCOUNT_KEY }}'
github-actor: '${{ github.actor }}'
github-secret: '${{ secrets.GITHUB_TOKEN }}'
github-sha: '${{ github.sha }}'
github-ref-name: '${{github.event.inputs.ref}}'
dry-run: '${{ github.event.inputs.dry-run }}'
ref-name: '${{github.event.inputs.ref}}'
- name: 'Create Issue on Failure'
if: '${{ failure() && github.event.inputs.dry-run == false }}'
env: