Skip to content

Commit

Permalink
make sure image-id is in lowercase
Browse files Browse the repository at this point in the history
  • Loading branch information
romeroalx committed Nov 22, 2023
1 parent 726bb50 commit f86fd19
Showing 1 changed file with 5 additions and 2 deletions.
7 changes: 5 additions & 2 deletions .github/workflows/build-debian-images.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -25,10 +25,13 @@ jobs:
steps:
- uses: actions/checkout@v3

- run: |
echo "image-id-lowercase=ghcr.io/${{ github.repository }}/${{ matrix.image-id }}" | tr '[:upper:]' '[:lower:]' >> "$GITHUB_ENV"
- name: Build image
run: |
docker build . --file Dockerfile \
--tag ghcr.io/${{ github.repository }}/${{ matrix.image-id }}:${{ env.IMAGE_TAG }} \
--tag ${{ env.image-id-lowercase }}:${{ env.IMAGE_TAG }} \
--build-arg DEBIAN_IMAGE_TAG=${{ matrix.debian-release-name }}
- name: Login to GitHub Container Registry
Expand All @@ -40,4 +43,4 @@ jobs:

- name: Push into Github Container Registry
run: |
docker push ghcr.io/${{ github.repository }}/${{ matrix.image-id }}:${{ env.IMAGE_TAG }}
docker push ${{ env.image-id-lowercase }}:${{ env.IMAGE_TAG }}

0 comments on commit f86fd19

Please sign in to comment.