Skip to content

Commit 0c3f7c8

Browse files
committed
🔥 [#179] remove unnecessary step from image-scan GH job
1 parent 0f7d5ba commit 0c3f7c8

File tree

1 file changed

+0
-19
lines changed

1 file changed

+0
-19
lines changed

.github/workflows/ci.yml

-19
Original file line numberDiff line numberDiff line change
@@ -146,25 +146,6 @@ jobs:
146146
- docker
147147

148148
steps:
149-
# So the scanner gets commit meta-information
150-
- name: Checkout code
151-
uses: actions/checkout@v4
152-
153-
- name: Derive version
154-
id: vars
155-
run: |
156-
# Strip git ref prefix from version
157-
VERSION=$(echo "${{ github.ref }}" | sed -e 's,.*/\(.*\),\1,')
158-
159-
# Strip "v" prefix from tag name (if present at all)
160-
[[ "${{ github.ref }}" == "refs/tags/"* ]] && VERSION=$(echo $VERSION | sed -e 's/^v//')
161-
162-
# Use Docker `latest` tag convention
163-
[ "$VERSION" == "master" ] && VERSION=latest
164-
165-
# PRs result in version 'merge' -> transform that into 'latest'
166-
[ "$VERSION" == "merge" ] && VERSION=latest
167-
echo "version=${VERSION}" >> $GITHUB_OUTPUT
168149
- name: Download built image
169150
uses: actions/download-artifact@v3
170151
with:

0 commit comments

Comments
 (0)