-
Notifications
You must be signed in to change notification settings - Fork 17
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
🐛 Fix errors in client release pipeline #1559
Conversation
czunker
commented
Jan 29, 2025
- increase timeout while waiting for the release files
- wait for the container which is needed for the next step
- create token which works across repos
goreleaser might take a bit longer Also wait for the image, which takes the longest to build. Signed-off-by: Christian Zunker <christian@mondoo.com>
Signed-off-by: Christian Zunker <christian@mondoo.com>
@@ -59,9 +59,9 @@ jobs: | |||
id: check_release_file | |||
uses: nick-fields/retry@v3 | |||
with: | |||
retry_wait_seconds: 10 | |||
retry_wait_seconds: 20 |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
retry_on: error | ||
# error on HTTP code different to 200 | ||
command: | | ||
vSEMVER=${{ github.ref_name }} | ||
SEMVER="${vSEMVER//v}" | ||
curl -o /dev/null -s -w "%{http_code}\n" "https://releases.mondoo.com/cnspec/${SEMVER}/cnspec_${vSEMVER}_SHA256SUMS" | grep 200 | ||
curl -o /dev/null -s -w "%{http_code}\n" "https://registry.hub.docker.com/v2/repositories/mondoo/cnspec/tags/${SEMVER}-ubi-rootless" | grep 200 |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
We need the container for the installer release. The container build takes longer than the checksums file.
owner: ${{ github.repository_owner }} | ||
repository: | | ||
mondoohq/installer | ||
mondoohq/cnspec |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.