diff --git a/.github/workflows/build-flavor.yaml b/.github/workflows/build-flavor.yaml index c345768..8be88f7 100644 --- a/.github/workflows/build-flavor.yaml +++ b/.github/workflows/build-flavor.yaml @@ -40,7 +40,7 @@ jobs: - name: Set up Docker Buildx uses: docker/setup-buildx-action@v3 with: - config-inline: | + buildkitd-config-inline: | [registry."docker.io"] mirrors = ["mirror.gcr.io"] - name: Login to Docker Hub @@ -69,7 +69,9 @@ jobs: KOTLIN_VERSION=${{ inputs.kotlin-version }} BASE_IMAGE=${{ inputs.base-image }} 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=${{ env.REGISTRY_IMAGE }},push-by-digest=true,name-canonical=true,push=true + type=image,name=ghcr.io/${{ env.REGISTRY_IMAGE }},push-by-digest=true,name-canonical=true,push=true - name: Test image if: ${{ inputs.only-validate }} shell: bash @@ -113,7 +115,7 @@ jobs: - name: Set up Docker Buildx uses: docker/setup-buildx-action@v3 with: - config-inline: | + buildkitd-config-inline: | [registry."docker.io"] mirrors = ["mirror.gcr.io"] - name: Login to Docker Hub @@ -140,15 +142,13 @@ jobs: images: ${{ env.REGISTRY_IMAGE }} tags: | ${{ inputs.latest && 'type=raw,value=latest' || '' }} - ${{ inputs.latest && 'type=raw,value=ghcr.io/latest' || '' }} type=raw,value=${{ env.TAG_PREFIX }} - type=raw,value=ghcr.io/${{ env.TAG_PREFIX }} - name: Create manifest list and push working-directory: /tmp/digests run: | # shellcheck disable=SC2046 docker buildx imagetools create $(jq -cr '.tags | map("-t " + .) | join(" ")' <<< "$DOCKER_METADATA_OUTPUT_JSON") \ - $(printf '${{ env.REGISTRY_IMAGE }}@sha256:%s ' *) + $(printf '${{ env.REGISTRY_IMAGE }}@sha256:%1s ghcr.io/${{ env.REGISTRY_IMAGE }}@sha256:%1s ' *) - name: Inspect image run: | docker buildx imagetools inspect "$REGISTRY_IMAGE:${{ steps.meta.outputs.version }}"