Skip to content
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

Merged
merged 2 commits into from
Jan 29, 2025
Merged

Conversation

czunker
Copy link
Contributor

@czunker 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
Copy link
Contributor Author

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
Copy link
Contributor Author

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.

Comment on lines +179 to +182
owner: ${{ github.repository_owner }}
repository: |
mondoohq/installer
mondoohq/cnspec
Copy link
Contributor Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

@czunker czunker requested a review from philipbalinov January 29, 2025 05:06
@philipbalinov philipbalinov merged commit 68ed6fa into main Jan 29, 2025
6 checks passed
@philipbalinov philipbalinov deleted the czunker/inc_retries branch January 29, 2025 05:22
@github-actions github-actions bot locked and limited conversation to collaborators Jan 29, 2025
Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants