Skip to content

Commit

Permalink
Lowercase for manifest too
Browse files Browse the repository at this point in the history
  • Loading branch information
andressbarajas committed Dec 2, 2024
1 parent 03eb0d8 commit f84a4b8
Showing 1 changed file with 8 additions and 3 deletions.
11 changes: 8 additions & 3 deletions .github/workflows/gen-toolchains.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -148,12 +148,17 @@ jobs:
username: ${{ secrets.DOCKER_HUB_USERNAME }}
password: ${{ secrets.DOCKER_HUB_ACCESS_TOKEN }}

- name: Convert Repository Owner to Lowercase
id: lower-owner
run: |
echo "repository_owner=${GITHUB_REPOSITORY%%/*}" | tr '[:upper:]' '[:lower:]' >> $GITHUB_OUTPUT
- name: Create and Push Docker Manifest
run: |
docker buildx imagetools create \
--tag ghcr.io/${{ github.repository_owner }}/dc-toolchain:${{ matrix.version.tag }} \
--tag ghcr.io/${{ steps.lower-owner.outputs.repository_owner }}/dc-toolchain:${{ matrix.version.tag }} \
--tag ${{ secrets.DOCKER_HUB_USERNAME }}/dc-toolchain:${{ matrix.version.tag }} \
ghcr.io/${{ github.repository_owner }}/dc-toolchain:${{ matrix.version.tag }}-arm64 \
ghcr.io/${{ github.repository_owner }}/dc-toolchain:${{ matrix.version.tag }}-amd64 \
ghcr.io/${{ steps.lower-owner.outputs.repository_owner }}/dc-toolchain:${{ matrix.version.tag }}-arm64 \
ghcr.io/${{ steps.lower-owner.outputs.repository_owner }}/dc-toolchain:${{ matrix.version.tag }}-amd64 \
${{ secrets.DOCKER_HUB_USERNAME }}/dc-toolchain:${{ matrix.version.tag }}-arm64 \
${{ secrets.DOCKER_HUB_USERNAME }}/dc-toolchain:${{ matrix.version.tag }}-amd64

0 comments on commit f84a4b8

Please sign in to comment.