mirror of
https://github.com/GothenburgBitFactory/task-timewarrior-hook.git
synced 2025-09-05 14:07:21 +02:00
Use lowercase owner in repository name
This commit is contained in:
parent
a5e98bcc9a
commit
ce448217eb
3 changed files with 32 additions and 18 deletions
8
.github/workflows/tests.yaml
vendored
8
.github/workflows/tests.yaml
vendored
|
@ -39,6 +39,10 @@ jobs:
|
||||||
runs-on: ${{ matrix.runner }}
|
runs-on: ${{ matrix.runner }}
|
||||||
continue-on-error: ${{ matrix.continue-on-error == true }}
|
continue-on-error: ${{ matrix.continue-on-error == true }}
|
||||||
steps:
|
steps:
|
||||||
|
- name: Create lowercase repository name
|
||||||
|
run: |
|
||||||
|
GHCR_REPOSITORY="${{ github.repository_owner }}"
|
||||||
|
echo "REPOSITORY=${GHCR_REPOSITORY,,}" >> ${GITHUB_ENV}
|
||||||
- uses: actions/checkout@v3
|
- uses: actions/checkout@v3
|
||||||
- name : Login to GHCR
|
- name : Login to GHCR
|
||||||
uses : docker/login-action@v2.1.0
|
uses : docker/login-action@v2.1.0
|
||||||
|
@ -49,7 +53,7 @@ jobs:
|
||||||
- name: Build ${{ matrix.name }}
|
- name: Build ${{ matrix.name }}
|
||||||
env:
|
env:
|
||||||
REGISTRY: ghcr.io
|
REGISTRY: ghcr.io
|
||||||
OWNER: ${{ github.repository_owner }}
|
OWNER: ${{ env.REPOSITORY }}
|
||||||
GITHUB_USER: ${{ github.repository_owner }}
|
GITHUB_USER: ${{ github.repository_owner }}
|
||||||
GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }}
|
GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }}
|
||||||
CONTAINER: ${{ matrix.container }}
|
CONTAINER: ${{ matrix.container }}
|
||||||
|
@ -57,7 +61,7 @@ jobs:
|
||||||
- name: Test ${{ matrix.name }}
|
- name: Test ${{ matrix.name }}
|
||||||
env:
|
env:
|
||||||
REGISTRY: ghcr.io
|
REGISTRY: ghcr.io
|
||||||
OWNER: ${{ github.repository_owner }}
|
OWNER: ${{ env.REPOSITORY }}
|
||||||
GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }}
|
GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }}
|
||||||
CONTAINER: ${{ matrix.container }}
|
CONTAINER: ${{ matrix.container }}
|
||||||
run: docker-compose run ${CONTAINER}
|
run: docker-compose run ${CONTAINER}
|
||||||
|
|
|
@ -25,6 +25,11 @@ jobs:
|
||||||
id-token: write
|
id-token: write
|
||||||
|
|
||||||
steps:
|
steps:
|
||||||
|
- name: Create lowercase repository name
|
||||||
|
run: |
|
||||||
|
GHCR_REPOSITORY="${{ github.repository_owner }}"
|
||||||
|
echo "REPOSITORY=${GHCR_REPOSITORY,,}" >> ${GITHUB_ENV}
|
||||||
|
|
||||||
- name: Checkout repository
|
- name: Checkout repository
|
||||||
uses: actions/checkout@v3
|
uses: actions/checkout@v3
|
||||||
|
|
||||||
|
@ -46,14 +51,14 @@ jobs:
|
||||||
file: "./test/docker/task-timew.dockerfile"
|
file: "./test/docker/task-timew.dockerfile"
|
||||||
push: true
|
push: true
|
||||||
build-args: |
|
build-args: |
|
||||||
TASK_IMAGE=${{ env.REGISTRY }}/${{ github.repository_owner }}/task:${{ env.RELEASE }}
|
TASK_IMAGE=${{ env.REGISTRY }}/${{ env.REPOSITORY }}/task:${{ env.RELEASE }}
|
||||||
TIMEW_IMAGE=${{ env.REGISTRY }}/${{ github.repository_owner }}/timew:develop
|
TIMEW_IMAGE=${{ env.REGISTRY }}/${{ env.REPOSITORY }}/timew:develop
|
||||||
tags: ${{ env.REGISTRY }}/${{ github.repository_owner }}/task-timew:${{ env.RELEASE }}-develop
|
tags: ${{ env.REGISTRY }}/${{ env.REPOSITORY }}/task-timew:${{ env.RELEASE }}-develop
|
||||||
|
|
||||||
- name: Sign the published Docker image
|
- name: Sign the published Docker image
|
||||||
env:
|
env:
|
||||||
COSIGN_EXPERIMENTAL: "true"
|
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 [${{ env.RELEASE }}]/Timewarrior [stable] Docker image
|
- name: Build and push Taskwarrior [${{ env.RELEASE }}]/Timewarrior [stable] Docker image
|
||||||
id: build-and-push-stable
|
id: build-and-push-stable
|
||||||
|
@ -63,11 +68,11 @@ jobs:
|
||||||
file: "./test/docker/task-timew.dockerfile"
|
file: "./test/docker/task-timew.dockerfile"
|
||||||
push: true
|
push: true
|
||||||
build-args: |
|
build-args: |
|
||||||
TASK_IMAGE=${{ env.REGISTRY }}/${{ github.repository_owner }}/task:${{ env.RELEASE }}
|
TASK_IMAGE=${{ env.REGISTRY }}/${{ env.REPOSITORY }}/task:${{ env.RELEASE }}
|
||||||
TIMEW_IMAGE=${{ env.REGISTRY }}/${{ github.repository_owner }}/timew:stable
|
TIMEW_IMAGE=${{ env.REGISTRY }}/${{ env.REPOSITORY }}/timew:stable
|
||||||
tags: ${{ env.REGISTRY }}/${{ github.repository_owner }}/task-timew:${{ env.RELEASE }}-stable
|
tags: ${{ env.REGISTRY }}/${{ env.REPOSITORY }}/task-timew:${{ env.RELEASE }}-stable
|
||||||
|
|
||||||
- name: Sign the published Docker image
|
- name: Sign the published Docker image
|
||||||
env:
|
env:
|
||||||
COSIGN_EXPERIMENTAL: "true"
|
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 }}
|
||||||
|
|
|
@ -25,6 +25,11 @@ jobs:
|
||||||
id-token: write
|
id-token: write
|
||||||
|
|
||||||
steps:
|
steps:
|
||||||
|
- name: Create lowercase repository name
|
||||||
|
run: |
|
||||||
|
GHCR_REPOSITORY="${{ github.repository_owner }}"
|
||||||
|
echo "REPOSITORY=${GHCR_REPOSITORY,,}" >> ${GITHUB_ENV}
|
||||||
|
|
||||||
- name: Checkout repository
|
- name: Checkout repository
|
||||||
uses: actions/checkout@v3
|
uses: actions/checkout@v3
|
||||||
|
|
||||||
|
@ -46,14 +51,14 @@ jobs:
|
||||||
file: "./test/docker/task-timew.dockerfile"
|
file: "./test/docker/task-timew.dockerfile"
|
||||||
push: true
|
push: true
|
||||||
build-args: |
|
build-args: |
|
||||||
TASK_IMAGE=${{ env.REGISTRY }}/${{ github.repository_owner }}/task:develop
|
TASK_IMAGE=${{ env.REGISTRY }}/${{ env.REPOSITORY }}/task:develop
|
||||||
TIMEW_IMAGE=${{ env.REGISTRY }}/${{ github.repository_owner }}/timew:${{ env.RELEASE }}
|
TIMEW_IMAGE=${{ env.REGISTRY }}/${{ env.REPOSITORY }}/timew:${{ env.RELEASE }}
|
||||||
tags: ${{ env.REGISTRY }}/${{ github.repository_owner }}/task-timew:develop-${{ env.RELEASE }}
|
tags: ${{ env.REGISTRY }}/${{ env.REPOSITORY }}/task-timew:develop-${{ env.RELEASE }}
|
||||||
|
|
||||||
- name: Sign the published Docker image
|
- name: Sign the published Docker image
|
||||||
env:
|
env:
|
||||||
COSIGN_EXPERIMENTAL: "true"
|
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
|
- name: Build and push Taskwarrior [stable]/Timewarrior [${{ env.RELEASE }}] Docker image
|
||||||
id: build-and-push-stable
|
id: build-and-push-stable
|
||||||
|
@ -63,11 +68,11 @@ jobs:
|
||||||
file: "./test/docker/task-timew.dockerfile"
|
file: "./test/docker/task-timew.dockerfile"
|
||||||
push: true
|
push: true
|
||||||
build-args: |
|
build-args: |
|
||||||
TASK_IMAGE=${{ env.REGISTRY }}/${{ github.repository_owner }}/task:stable
|
TASK_IMAGE=${{ env.REGISTRY }}/${{ env.REPOSITORY }}/task:stable
|
||||||
TIMEW_IMAGE=${{ env.REGISTRY }}/${{ github.repository_owner }}/timew:${{ env.RELEASE }}
|
TIMEW_IMAGE=${{ env.REGISTRY }}/${{ env.REPOSITORY }}/timew:${{ env.RELEASE }}
|
||||||
tags: ${{ env.REGISTRY }}/${{ github.repository_owner }}/task-timew:stable-${{ env.RELEASE }}
|
tags: ${{ env.REGISTRY }}/${{ env.REPOSITORY }}/task-timew:stable-${{ env.RELEASE }}
|
||||||
|
|
||||||
- name: Sign the published Docker image
|
- name: Sign the published Docker image
|
||||||
env:
|
env:
|
||||||
COSIGN_EXPERIMENTAL: "true"
|
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 }}
|
||||||
|
|
Loading…
Add table
Add a link
Reference in a new issue