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 9bdca43 commit 30589e7Copy full SHA for 30589e7
.github/workflows/sysdig-cli-scanner.yaml
@@ -23,8 +23,6 @@ jobs:
23
GH_TOKEN: ${{ secrets.GITHUB_TOKEN }}
24
run: |
25
LATEST_VERSION=$(curl -sL https://download.sysdig.com/scanning/sysdig-cli-scanner/latest_version.txt)
26
- echo "IMAGE_TAG=${LATEST_VERSION}" >> ${GITHUB_ENV}
27
- exit 0
28
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]')
29
if [ ! -f ${GITHUB_WORKSPACE}/cache/latest_version.txt ] || [ ${LATEST_VERSION} != ${IMAGE_TAG} ]; then
30
echo "Container versions differ, building ${LATEST_VERSION}"
0 commit comments