diff options
| author | Cristian Torres <18661121+PrototypeActual@users.noreply.github.com> | 2025-01-23 22:46:11 -0500 |
|---|---|---|
| committer | GitHub <noreply@github.com> | 2025-01-24 00:46:11 -0300 |
| commit | f00f156e2cfaa45d2243104808edf551705d604c (patch) | |
| tree | 8679f89074ca12810d70a93c1e646d450ec33d78 /.github/workflows | |
| parent | acf114c41649ca45b17b84fe884747c63ba24979 (diff) | |
| download | AeroCore-OS-f00f156e2cfaa45d2243104808edf551705d604c.tar.gz AeroCore-OS-f00f156e2cfaa45d2243104808edf551705d604c.zip | |
Update build.yml (#61)
Added lowering casing of image name should it be uppercased.Switched variables to grab lowercased image name.
Diffstat (limited to '.github/workflows')
| -rw-r--r-- | .github/workflows/build.yml | 10 |
1 files changed, 8 insertions, 2 deletions
diff --git a/.github/workflows/build.yml b/.github/workflows/build.yml index 51d396d..a8d7325 100644 --- a/.github/workflows/build.yml +++ b/.github/workflows/build.yml @@ -141,6 +141,12 @@ jobs: with: string: ${{ env.IMAGE_REGISTRY }} + - name: Lowercase Image + id: image_case + uses: ASzc/change-string-case-action@v6 + with: + string: ${{ env.IMAGE_NAME }} + - name: Push To GHCR uses: redhat-actions/push-to-registry@5ed88d269cf581ea9ef6dd6806d01562096bee9c # v2 if: github.event_name != 'pull_request' && github.ref == format('refs/heads/{0}', github.event.repository.default_branch) @@ -150,7 +156,7 @@ jobs: REGISTRY_PASSWORD: ${{ github.token }} with: registry: ${{ steps.registry_case.outputs.lowercase }} - image: ${{ env.IMAGE_NAME }} + image: ${{ steps.image_case.outputs.lowercase }} tags: ${{ steps.metadata.outputs.tags }} username: ${{ env.REGISTRY_USER }} password: ${{ env.REGISTRY_PASSWORD }} @@ -166,7 +172,7 @@ jobs: - name: Sign container image if: github.event_name != 'pull_request' && github.ref == format('refs/heads/{0}', github.event.repository.default_branch) run: | - IMAGE_FULL="${{ steps.registry_case.outputs.lowercase }}/${IMAGE_NAME}" + IMAGE_FULL="${{ steps.registry_case.outputs.lowercase }}/${{ steps.image_case.outputs.lowercase }}" for tag in ${{ steps.metadata.outputs.tags }}; do cosign sign -y --key env://COSIGN_PRIVATE_KEY $IMAGE_FULL:$tag done |
