Compare commits
1 Commits
| Author | SHA1 | Date | |
|---|---|---|---|
| 83911b842f |
@@ -9,6 +9,9 @@ on:
|
||||
dockerfile_path:
|
||||
type: string
|
||||
default: "."
|
||||
floating_tag:
|
||||
type: string
|
||||
default: "edge"
|
||||
run_image_scan:
|
||||
type: boolean
|
||||
default: true
|
||||
@@ -68,6 +71,11 @@ jobs:
|
||||
-t "${FULL_IMAGE}:${SHA_SHORT}" \
|
||||
${{ inputs.dockerfile_path }}
|
||||
|
||||
# Floating tag points at the most recent build on any branch/tag, so
|
||||
# the nightly image-security scan always has a stable target even
|
||||
# before a release exists. ":latest" stays release-only (below).
|
||||
docker tag "${FULL_IMAGE}:${SHA_SHORT}" "${FULL_IMAGE}:${{ inputs.floating_tag }}"
|
||||
|
||||
if echo "${{ gitea.ref }}" | grep -q '^refs/tags/v'; then
|
||||
VERSION="${{ gitea.ref_name }}"
|
||||
VERSION="${VERSION#v}"
|
||||
@@ -143,6 +151,9 @@ jobs:
|
||||
echo "=== Push SHA tag ==="
|
||||
docker push "${FULL_IMAGE}:${SHA_SHORT}"
|
||||
|
||||
echo "=== Push floating tag (${{ inputs.floating_tag }}) ==="
|
||||
docker push "${FULL_IMAGE}:${{ inputs.floating_tag }}"
|
||||
|
||||
if echo "${{ gitea.ref }}" | grep -q '^refs/tags/v'; then
|
||||
echo "=== Version tag detected ==="
|
||||
|
||||
|
||||
@@ -8,7 +8,7 @@ on:
|
||||
type: string
|
||||
image_tag:
|
||||
type: string
|
||||
default: "latest"
|
||||
default: "edge"
|
||||
scan_severity:
|
||||
type: string
|
||||
default: "HIGH,CRITICAL"
|
||||
|
||||
Reference in New Issue
Block a user