diff --git a/.github/actions/docker-build-and-push/action.yaml b/.github/actions/docker-build-and-push/action.yaml index f2c6d9be85e..888a84faba5 100644 --- a/.github/actions/docker-build-and-push/action.yaml +++ b/.github/actions/docker-build-and-push/action.yaml @@ -48,7 +48,7 @@ runs: id: meta-prebuilt uses: docker/metadata-action@v4 with: - images: ghcr.io/${{ github.repository_owner }}/${{ inputs.bake-target }} + images: ghcr.io/${{ github.actor }}/${{ inputs.bake-target }} tags: ${{ steps.set-docker-tags.outputs.tags }} bake-target: docker-metadata-action-prebuilt flavor: | @@ -59,7 +59,7 @@ runs: id: meta-devel uses: docker/metadata-action@v4 with: - images: ghcr.io/${{ github.repository_owner }}/${{ inputs.bake-target }} + images: ghcr.io/${{ github.actor }}/${{ inputs.bake-target }} tags: ${{ steps.set-docker-tags.outputs.tags }} bake-target: docker-metadata-action-devel flavor: | @@ -71,7 +71,7 @@ runs: id: meta-runtime uses: docker/metadata-action@v4 with: - images: ghcr.io/${{ github.repository_owner }}/${{ inputs.bake-target }} + images: ghcr.io/${{ github.actor }}/${{ inputs.bake-target }} tags: ${{ steps.set-docker-tags.outputs.tags }} bake-target: docker-metadata-action-runtime flavor: | @@ -79,7 +79,6 @@ runs: suffix=-runtime${{ inputs.tag-suffix }} - name: Login to GitHub Container Registry - if: ${{ github.event_name != 'pull_request' }} uses: docker/login-action@v2 with: registry: ghcr.io