Skip to content

Commit

Permalink
Fix lowercase repository name for docker
Browse files Browse the repository at this point in the history
  • Loading branch information
haakonnessjoen committed Aug 10, 2024
1 parent 77c66ab commit 4c0ebf7
Showing 1 changed file with 7 additions and 3 deletions.
10 changes: 7 additions & 3 deletions .github/workflows/docker.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -29,11 +29,15 @@ jobs:
registry: ${{ env.REGISTRY }}
username: ${{ github.actor }}
password: ${{ secrets.GITHUB_TOKEN }}
- name: Fix lowercase name
id: tolower
run: |
echo imagename=$(echo ${{ env.REGISTRY }}/${{ env.IMAGE_NAME }} | tr '[:upper:]' '[:lower:]') >> $GITHUB_OUTPUT
- name: Docker meta
id: meta
uses: docker/metadata-action@v5
with:
images: ${{ env.REGISTRY }}/${{ env.IMAGE_NAME }}
images: ${{ steps.tolower.outputs.imagename }}
- name: Set up Docker Buildx
uses: docker/setup-buildx-action@v3
- name: Build and push
Expand All @@ -48,9 +52,9 @@ jobs:
- name: Generate artifact attestation
uses: actions/attest-build-provenance@v1
with:
subject-name: ${{ env.REGISTRY }}/${{ env.IMAGE_NAME}}
subject-name: ${{ steps.tolower.outputs.imagename }}
subject-digest: ${{ steps.push.outputs.digest }}
push-to-registry: true
- name: Inspect
run: |
docker buildx imagetools inspect ${{ env.REGISTRY }}/${{ env.IMAGE_NAME }}:${{ steps.meta.outputs.version }}
docker buildx imagetools inspect ${{ steps.tolower.outputs.imagename }}:${{ steps.meta.outputs.version }}

0 comments on commit 4c0ebf7

Please sign in to comment.