Skip to content

RELEASE #1580

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

Merged
merged 6 commits into from
May 12, 2025
Merged

RELEASE #1580

Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
603 changes: 323 additions & 280 deletions .circleci/config.yml

Large diffs are not rendered by default.

2 changes: 1 addition & 1 deletion Dockerfile
Original file line number Diff line number Diff line change
Expand Up @@ -8,7 +8,7 @@ RUN go install github.com/awslabs/amazon-ecr-credential-helper/ecr-login/cli/doc
RUN --mount=type=secret,id=gh_token,required=true \
git config --global url."https://$(cat /run/secrets/gh_token):[email protected]/snyk".insteadOf "https://github.com/snyk" && \
go env -w GOPRIVATE=github.com/snyk && \
go install github.com/snyk/docker-credential-acr-env@697fe895979cea8a1595b4c0c30ea78a5f5c13ce && \
go install github.com/snyk/docker-credential-acr-env@62fbee8398a22171cb0f628400a29b2ebaed7a3a && \
git config --global --unset url."https://$(cat /run/secrets/gh_token):[email protected]/snyk".insteadOf

#---------------------------------------------------------------------
Expand Down
2 changes: 1 addition & 1 deletion Dockerfile.ubi9
Original file line number Diff line number Diff line change
Expand Up @@ -7,7 +7,7 @@ RUN GOTOOLCHAIN=go1.23.4 go install github.com/awslabs/amazon-ecr-credential-hel
RUN --mount=type=secret,id=gh_token,uid=1001,required=true \
git config --global url."https://$(cat /run/secrets/gh_token):[email protected]/snyk".insteadOf "https://github.com/snyk" && \
go env -w GOPRIVATE=github.com/snyk && \
GOTOOLCHAIN=go1.23.4 go install github.com/snyk/docker-credential-acr-env@697fe895979cea8a1595b4c0c30ea78a5f5c13ce && \
GOTOOLCHAIN=go1.23.4 go install github.com/snyk/docker-credential-acr-env@62fbee8398a22171cb0f628400a29b2ebaed7a3a && \
git config --global --unset url."https://$(cat /run/secrets/gh_token):[email protected]/snyk".insteadOf

#---------------------------------------------------------------------
Expand Down
22 changes: 0 additions & 22 deletions scripts/circleci-jobs/setup-integration-tests.py

This file was deleted.

3 changes: 0 additions & 3 deletions scripts/docker/approve-image.sh
Original file line number Diff line number Diff line change
Expand Up @@ -6,21 +6,18 @@ set -e
# then it would be null
if [ $1 == "null" ]; then
echo Semantic-Release did not create a new version, not pushing a new approved image
./scripts/slack/notify_success_no_release.py
else
IMAGE_NAME_CANDIDATE=snyk/kubernetes-monitor:staging-candidate-${CIRCLE_SHA1}
IMAGE_NAME_APPROVED=snyk/kubernetes-monitor:${1}-approved

docker pull ${IMAGE_NAME_CANDIDATE}
docker tag ${IMAGE_NAME_CANDIDATE} ${IMAGE_NAME_APPROVED}
docker push ${IMAGE_NAME_APPROVED}
./scripts/slack/notify_push.py ${IMAGE_NAME_APPROVED}

IMAGE_NAME_CANDIDATE_UBI9=snyk/kubernetes-monitor:staging-candidate-ubi9-${CIRCLE_SHA1:0:8}
IMAGE_NAME_APPROVED_UBI9=snyk/kubernetes-monitor:${1}-ubi9-approved

docker pull ${IMAGE_NAME_CANDIDATE_UBI9}
docker tag ${IMAGE_NAME_CANDIDATE_UBI9} ${IMAGE_NAME_APPROVED_UBI9}
docker push ${IMAGE_NAME_APPROVED_UBI9}
./scripts/slack/notify_push.py ${IMAGE_NAME_APPROVED_UBI9}
fi
3 changes: 0 additions & 3 deletions scripts/publish-gh-pages.sh
Original file line number Diff line number Diff line change
Expand Up @@ -15,7 +15,6 @@ git checkout -f gh-pages
if grep -Fxq " tag: ${NEW_TAG}" ./snyk-monitor/values.yaml
then
echo not publishing a new gh-pages commit since this version is already published
./scripts/slack/notify_success_no_publish.py
exit 0
fi

Expand Down Expand Up @@ -59,5 +58,3 @@ for (( i=0; i<${attempts}; i++ )); do
echo "$curl_response"
sleep $sleep_time
done

./scripts/slack/notify_push.py "gh-pages"
31 changes: 0 additions & 31 deletions scripts/slack/notify_deploy.py

This file was deleted.

33 changes: 0 additions & 33 deletions scripts/slack/notify_failure.py

This file was deleted.

19 changes: 0 additions & 19 deletions scripts/slack/notify_failure_on_branch.py

This file was deleted.

28 changes: 0 additions & 28 deletions scripts/slack/notify_push.py

This file was deleted.

26 changes: 0 additions & 26 deletions scripts/slack/notify_success_no_publish.py

This file was deleted.

26 changes: 0 additions & 26 deletions scripts/slack/notify_success_no_release.py

This file was deleted.

Loading