Use lowercase owner in repository name

This commit is contained in:
Thomas Lauf 2023-02-05 17:17:22 +01:00
parent a5e98bcc9a
commit ce448217eb
3 changed files with 32 additions and 18 deletions

View file

@ -25,6 +25,11 @@ jobs:
id-token: write
steps:
- name: Create lowercase repository name
run: |
GHCR_REPOSITORY="${{ github.repository_owner }}"
echo "REPOSITORY=${GHCR_REPOSITORY,,}" >> ${GITHUB_ENV}
- name: Checkout repository
uses: actions/checkout@v3
@ -46,14 +51,14 @@ jobs:
file: "./test/docker/task-timew.dockerfile"
push: true
build-args: |
TASK_IMAGE=${{ env.REGISTRY }}/${{ github.repository_owner }}/task:develop
TIMEW_IMAGE=${{ env.REGISTRY }}/${{ github.repository_owner }}/timew:${{ env.RELEASE }}
tags: ${{ env.REGISTRY }}/${{ github.repository_owner }}/task-timew:develop-${{ env.RELEASE }}
TASK_IMAGE=${{ env.REGISTRY }}/${{ env.REPOSITORY }}/task:develop
TIMEW_IMAGE=${{ env.REGISTRY }}/${{ env.REPOSITORY }}/timew:${{ env.RELEASE }}
tags: ${{ env.REGISTRY }}/${{ env.REPOSITORY }}/task-timew:develop-${{ env.RELEASE }}
- name: Sign the published Docker image
env:
COSIGN_EXPERIMENTAL: "true"
run: cosign sign ${{ env.REGISTRY }}/${{ github.repository_owner }}/task-timew@${{ steps.build-and-push-develop.outputs.digest }}
run: cosign sign ${{ env.REGISTRY }}/${{ env.REPOSITORY }}/task-timew@${{ steps.build-and-push-develop.outputs.digest }}
- name: Build and push Taskwarrior [stable]/Timewarrior [${{ env.RELEASE }}] Docker image
id: build-and-push-stable
@ -63,11 +68,11 @@ jobs:
file: "./test/docker/task-timew.dockerfile"
push: true
build-args: |
TASK_IMAGE=${{ env.REGISTRY }}/${{ github.repository_owner }}/task:stable
TIMEW_IMAGE=${{ env.REGISTRY }}/${{ github.repository_owner }}/timew:${{ env.RELEASE }}
tags: ${{ env.REGISTRY }}/${{ github.repository_owner }}/task-timew:stable-${{ env.RELEASE }}
TASK_IMAGE=${{ env.REGISTRY }}/${{ env.REPOSITORY }}/task:stable
TIMEW_IMAGE=${{ env.REGISTRY }}/${{ env.REPOSITORY }}/timew:${{ env.RELEASE }}
tags: ${{ env.REGISTRY }}/${{ env.REPOSITORY }}/task-timew:stable-${{ env.RELEASE }}
- name: Sign the published Docker image
env:
COSIGN_EXPERIMENTAL: "true"
run: cosign sign ${{ env.REGISTRY }}/${{ github.repository_owner }}/task-timew@${{ steps.build-and-push-stable.outputs.digest }}
run: cosign sign ${{ env.REGISTRY }}/${{ env.REPOSITORY }}/task-timew@${{ steps.build-and-push-stable.outputs.digest }}