Skip to content

Commit 74cbc82

Browse files
authored
Fix cdoc2-server-liquibase Docker image pushing (#9)
Change github.actor -> github.repository_owner in docker-release.yml
1 parent fd276a3 commit 74cbc82

File tree

1 file changed

+3
-3
lines changed

1 file changed

+3
-3
lines changed

.github/workflows/docker-release.yml

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -38,7 +38,7 @@ jobs:
3838
id: meta
3939
uses: docker/metadata-action@v5
4040
with:
41-
images: ${{ env.REGISTRY }}/${{ github.actor }}/${{ env.IMAGE_NAME }}
41+
images: ${{ env.REGISTRY }}/${{ github.repository_owner }}/${{ env.IMAGE_NAME }}
4242
# This step uses the `docker/build-push-action` action to build the image, based on your repository's `Dockerfile`. If the build succeeds, it pushes the image to GitHub Packages.
4343
# It uses the `context` parameter to define the build's context as the set of files located in the specified path. For more information, see "[Usage](https://github.com/docker/build-push-action#usage)" in the README of the `docker/build-push-action` repository.
4444
# It uses the `tags` and `labels` parameters to tag and label the image with the output from the "meta" step.
@@ -49,15 +49,15 @@ jobs:
4949
context: server-db/src/main/resources/db
5050
#file: server-db/src/main/resources/db/Dockerfile
5151
push: true
52-
tags: ${{ env.REGISTRY }}/${{ github.actor }}/${{ env.IMAGE_NAME }}:${{ github.ref_name }}-${{ github.sha }}
52+
tags: ${{ env.REGISTRY }}/${{ github.repository_owner }}/${{ env.IMAGE_NAME }}:${{ github.ref_name }}-${{ github.sha }}
5353
labels: ${{ steps.meta.outputs.labels }}
5454

5555
# This step generates an artifact attestation for the image, which is an unforgeable statement about where and how it was built. It increases supply chain security for people who consume the image. For more information, see "[AUTOTITLE](/actions/security-guides/using-artifact-attestations-to-establish-provenance-for-builds)."
5656
- name: Generate artifact attestation
5757
uses: actions/attest-build-provenance@v1
5858
with:
5959
#subject-name: ${{ env.REGISTRY }}/${{ env.IMAGE_NAME}}
60-
subject-name: ${{ env.REGISTRY }}/${{ github.actor }}/${{ env.IMAGE_NAME }}
60+
subject-name: ${{ env.REGISTRY }}/${{ github.repository_owner }}/${{ env.IMAGE_NAME }}
6161
subject-digest: ${{ steps.push.outputs.digest }}
6262
push-to-registry: true
6363

0 commit comments

Comments
 (0)