diff --git a/.github/workflows/sync-golang-image.yaml b/.github/workflows/sync-golang-image.yaml index d3ee0539c..f62a821bd 100644 --- a/.github/workflows/sync-golang-image.yaml +++ b/.github/workflows/sync-golang-image.yaml @@ -1,3 +1,4 @@ +name: 'Sync golang image from docker to ghcr' on: workflow_dispatch: inputs: @@ -11,7 +12,7 @@ env: jobs: sync-golang: - name: 'Sync golang image from docker to ghcr' + name: 'pull & push golang' runs-on: ubuntu-latest steps: - name: Log in to GitHub Docker Registry @@ -24,5 +25,5 @@ jobs: - name: Tag and push to ghcr run: | docker pull golang:${{ env.GOLANG_VERSION }} - docker tag golang:${{ env.GOLANG_VERSION }} ghcr.io/project-zot/golang:${{ env.GOLANG_VERSION }} - docker push ghcr.io/project-zot/golang:${{ env.GOLANG_VERSION }} + docker tag golang:${{ env.GOLANG_VERSION }} ghcr.io/${{ github.repository_owner }}/golang:${{ env.GOLANG_VERSION }} + docker push ghcr.io/${{ github.repository_owner }}/golang:${{ env.GOLANG_VERSION }}