Use github.repository_owner instead of github.actor

Signed-off-by: Thomas Lauf <thomas.lauf@tngtech.com>
This commit is contained in:
Thomas Lauf 2023-01-13 22:46:01 +01:00
parent ba0514543f
commit 8b865eac81

View file

@ -35,7 +35,7 @@ jobs:
uses: docker/login-action@v2.1.0
with:
registry: ${{ env.REGISTRY }}
username: ${{ github.actor }}
username: ${{ github.repository_owner }}
password: ${{ secrets.GITHUB_TOKEN }}
- name: Build and push Timewarrior Docker image
@ -45,9 +45,9 @@ jobs:
context: .
file: "./docker/timew.dockerfile"
push: true
tags: ${{ env.REGISTRY }}/${{ github.actor }}/timew:${{ github.ref_name }}
tags: ${{ env.REGISTRY }}/${{ github.repository_owner }}/timew:${{ github.ref_name }}
- name: Sign the published Docker image
env:
COSIGN_EXPERIMENTAL: "true"
run: cosign sign ${{ env.REGISTRY }}/${{ github.actor }}/timew@${{ steps.build-and-push.outputs.digest }}
run: cosign sign ${{ env.REGISTRY }}/${{ github.repository_owner }}/timew@${{ steps.build-and-push.outputs.digest }}