Skip to content

Commit de65b6f

Browse files
committed
feat: added lowercase change for trivy
1 parent 0572138 commit de65b6f

File tree

1 file changed

+14
-0
lines changed

1 file changed

+14
-0
lines changed

.github/workflows/ci-cd.yml

Lines changed: 14 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -92,6 +92,13 @@ jobs:
9292
name: build-artifacts
9393
path: dist/
9494

95+
- name: Set lower-case image ref and sha tag
96+
id: prep
97+
shell: bash
98+
run: |
99+
echo "IMAGE_LC=${REGISTRY}/${IMAGE_NAME,,}" >> $GITHUB_ENV
100+
echo "SHA_TAG=sha-${GITHUB_SHA}" >> $GITHUB_ENV
101+
95102
- name: Set up Docker Buildx
96103
uses: docker/setup-buildx-action@v3
97104

@@ -159,6 +166,13 @@ jobs:
159166
git config user.name "GitHub Actions"
160167
git config user.email "actions@github.com"
161168
169+
- name: Prepare image ref (lowercase)
170+
shell: bash
171+
run: |
172+
IMAGE_LC="ghcr.io/${GITHUB_REPOSITORY,,}"
173+
echo "IMAGE_LC=$IMAGE_LC" >> $GITHUB_ENV
174+
echo "SHA_TAG=sha-${GITHUB_SHA}" >> $GITHUB_ENV
175+
162176
- name: Update Kubernetes deployment file
163177
env:
164178
IMAGE_TAG: sha-${{ github.sha }}

0 commit comments

Comments
 (0)