Skip to content

Commit

Permalink
Update php.yml
Browse files Browse the repository at this point in the history
  • Loading branch information
rikmeijer authored Nov 1, 2023
1 parent 4cf5999 commit 0957bdd
Showing 1 changed file with 7 additions and 3 deletions.
10 changes: 7 additions & 3 deletions .github/workflows/php.yml
Original file line number Diff line number Diff line change
Expand Up @@ -7,7 +7,7 @@ on:
branches: [ "main" ]

env:
REGISTRY_IMAGE: rikmeijer/ikigai
REGISTRY_IMAGE: ${{ github.repository }}

permissions:
contents: read
Expand Down Expand Up @@ -56,6 +56,7 @@ jobs:
build:
runs-on: ubuntu-latest
needs: test

strategy:
fail-fast: false
matrix:
Expand Down Expand Up @@ -89,7 +90,7 @@ jobs:
context: .
platforms: ${{ matrix.platform }}
labels: ${{ steps.meta.outputs.labels }}
outputs: type=image,name=${{ env.REGISTRY_IMAGE }},push-by-digest=true,name-canonical=true,push=true
outputs: type=image,name=ghcr.io/${{ env.REGISTRY_IMAGE }},push-by-digest=true,name-canonical=true,push=true
- name: Export digest
run: |
mkdir -p /tmp/digests
Expand All @@ -105,6 +106,9 @@ jobs:

merge:
runs-on: ubuntu-latest
permissions:
contents: read
packages: write
needs:
- build
steps:
Expand All @@ -130,7 +134,7 @@ jobs:
working-directory: /tmp/digests
run: |
docker buildx imagetools create $(jq -cr '.tags | map("-t " + .) | join(" ")' <<< "$DOCKER_METADATA_OUTPUT_JSON") \
$(printf '${{ env.REGISTRY_IMAGE }}@sha256:%s ' *)
$(printf 'ghcr.io/${{ env.REGISTRY_IMAGE }}@sha256:%s ' *)
- name: Inspect image
run: |
docker buildx imagetools inspect ${{ env.REGISTRY_IMAGE }}:${{ steps.meta.outputs.version }}

0 comments on commit 0957bdd

Please sign in to comment.