summaryrefslogtreecommitdiff
path: root/.github/workflows
diff options
context:
space:
mode:
authorCristian Torres <18661121+PrototypeActual@users.noreply.github.com>2025-01-23 22:46:11 -0500
committerGitHub <noreply@github.com>2025-01-24 00:46:11 -0300
commit270005cec27f141e2b4071077be13f6f557ac52f (patch)
tree8679f89074ca12810d70a93c1e646d450ec33d78 /.github/workflows
parent4e53033be2f6877668eee66c80879287de416d68 (diff)
downloadAeroCore-OS-270005cec27f141e2b4071077be13f6f557ac52f.tar.gz
AeroCore-OS-270005cec27f141e2b4071077be13f6f557ac52f.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.yml10
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