Skip to content

Commit

Permalink
fix: lower case image
Browse files Browse the repository at this point in the history
  • Loading branch information
sp-aaflalo committed Mar 7, 2024
1 parent 6dc58b5 commit 275f568
Showing 1 changed file with 7 additions and 4 deletions.
11 changes: 7 additions & 4 deletions .github/workflows/docker-publish.yml
Original file line number Diff line number Diff line change
Expand Up @@ -51,6 +51,9 @@ jobs:
actions: read
security-events: write
steps:
- name: Lowercase Image name
run: |
echo "IMAGE=${IMAGE_NAME@L}" >>${GITHUB_ENV}
- name: Checkout
uses: actions/checkout@v4
- name: Set version
Expand All @@ -60,9 +63,9 @@ jobs:
id: repo
run: |
if [[ $GITHUB_REF == "refs/heads/master" || $GITHUB_REF == refs/tags/* ]]; then
echo "repo=${DOCKER_REPO}" >> $GITHUB_OUTPUT
echo "repo=${DOCKER_REPO@L}" >> $GITHUB_OUTPUT
else
echo "repo=${DOCKER_REPO_DEV}" >> $GITHUB_OUTPUT
echo "repo=${DOCKER_REPO_DEV@L}" >> $GITHUB_OUTPUT
fi
# Extract metadata (tags, labels) for Docker
# https://github.com/docker/metadata-action
Expand All @@ -89,7 +92,7 @@ jobs:
file: ./Dockerfile
platforms: ${{ matrix.platform }}
push: true
tags: localhost:5000/${{env.IMAGE_NAME}}:latest
tags: localhost:5000/${{env.IMAGE}}:latest
cache-from: type=gha
cache-to: type=gha,mode=max
build-args: |
Expand All @@ -101,7 +104,7 @@ jobs:
uses: anchore/scan-action@v3
if: matrix.scan
with:
image: localhost:5000/${{env.IMAGE_NAME}}:latest
image: localhost:5000/${{env.IMAGE}}:latest
fail-build: true
severity-cutoff: critical
output-format: sarif
Expand Down

0 comments on commit 275f568

Please # to comment.