Skip to content

Commit

Permalink
fixed lowercase issue, added step to enfore lowercase
Browse files Browse the repository at this point in the history
  • Loading branch information
ValMobBIllich committed Jan 29, 2025
1 parent 4250b28 commit cdb0001
Show file tree
Hide file tree
Showing 2 changed files with 10 additions and 4 deletions.
6 changes: 6 additions & 0 deletions .github/actions/setup-rust-cross/action.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -26,3 +26,9 @@ runs:
- name: Install Cross
shell: bash
run: cargo install cross --git https://github.com/cross-rs/cross

- name: Fix Registry and Repository names
shell: bash
run: |
echo "REGISTRY=$(echo $REGISTRY | tr '[:upper:]' '[:lower:]')" >> $GITHUB_ENV
echo "IMAGE_NAME=$(echo $IMAGE_NAME | tr '[:upper:]' '[:lower:]')" >> $GITHUB_ENV
8 changes: 4 additions & 4 deletions .github/workflows/containerize-and-push.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -79,7 +79,7 @@ jobs:
file: "Dockerfile.zenoh-mqtt-arm"
push: true
platforms: linux/arm64
tags: ${{ env.REGISTRY.lowercase }}/${{ env.IMAGE_NAME.lowercase }}:arm64-${{ github.sha }}
tags: ${{ env.REGISTRY }}/${{ env.IMAGE_NAME }}:arm64-${{ github.sha }}
labels: ${{ needs.setup.outputs.labels }}

build-amd64:
Expand Down Expand Up @@ -117,7 +117,7 @@ jobs:
file: "Dockerfile.zenoh-mqtt-amd"
push: true
platforms: linux/amd64
tags: ${{ env.REGISTRY.lowercase }}/${{ env.IMAGE_NAME.lowercase }}:amd64-${{ github.sha }}
tags: ${{ env.REGISTRY }}/${{ env.IMAGE_NAME }}:amd64-${{ github.sha }}
labels: ${{ needs.setup.outputs.labels }}

create-manifest:
Expand All @@ -140,5 +140,5 @@ jobs:
tags: ${{ needs.setup.outputs.tags }}
platforms: linux/amd64,linux/arm64
inputs: |
${{ env.REGISTRY.lowercase }}/${{ env.IMAGE_NAME.lowercase }}:amd64-${{ github.sha }}
${{ env.REGISTRY.lowercase }}/${{ env.IMAGE_NAME.lowercase }}:arm64-${{ github.sha }}
${{ env.REGISTRY }}/${{ env.IMAGE_NAME }}:amd64-${{ github.sha }}
${{ env.REGISTRY }}/${{ env.IMAGE_NAME }}:arm64-${{ github.sha }}

0 comments on commit cdb0001

Please sign in to comment.