We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent 30589e7 commit ea5a20cCopy full SHA for ea5a20c
.github/workflows/sysdig-cli-scanner.yaml
@@ -24,7 +24,7 @@ jobs:
24
run: |
25
LATEST_VERSION=$(curl -sL https://download.sysdig.com/scanning/sysdig-cli-scanner/latest_version.txt)
26
IMAGE_TAG=$(gh api -H "Accept: application/vnd.github+json" /orgs/sysdiglabs/packages/container/sysdig-cli-scanner/versions | jq -r 'sort_by(.created_at) | last | .metadata.container.tags[0]')
27
- if [ ! -f ${GITHUB_WORKSPACE}/cache/latest_version.txt ] || [ ${LATEST_VERSION} != ${IMAGE_TAG} ]; then
+ if [[ ${LATEST_VERSION} != ${IMAGE_TAG} ]]; then
28
echo "Container versions differ, building ${LATEST_VERSION}"
29
echo "IMAGE_TAG=${LATEST_VERSION}" >> ${GITHUB_ENV}
30
else
0 commit comments