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

[CI] Remove last CircleCI bits #724

Open
wants to merge 1 commit into
base: main
Choose a base branch
from
Open
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
3 changes: 0 additions & 3 deletions .github/CODEOWNERS
Original file line number Diff line number Diff line change
Expand Up @@ -29,9 +29,6 @@ tasks/update_go.py @DataDog/agent-shared-components
/system-probe_arm64/ @DataDog/ebpf-platform @DataDog/agent-devx-infra
/system-probe_x64/ @DataDog/ebpf-platform @DataDog/agent-devx-infra

# CircleCI image
/circleci/ @DataDog/agent-devx-loops @DataDog/agent-devx-infra

# Linux test & build images
/deb-arm/ @DataDog/agent-devx-loops @DataDog/agent-delivery @DataDog/agent-devx-infra
/deb-x64/ @DataDog/agent-devx-loops @DataDog/agent-delivery @DataDog/agent-devx-infra
Expand Down
79 changes: 0 additions & 79 deletions .gitlab-ci.yml
Original file line number Diff line number Diff line change
Expand Up @@ -290,33 +290,6 @@ build_kernel_version_testing_arm64:
DOCKERFILE: kernel-version-testing/kernel-version-testing_arm64/Dockerfile
IMAGE: kernel-version-testing_arm64

build_circleci_runner:
extends: [.x64]
stage: build
rules:
- if: $CI_COMMIT_TAG == null
variables:
DOCKERFILE: circleci/Dockerfile
IMAGE: circleci-runner
script:
# Dockerhub login
- DOCKER_REGISTRY_LOGIN=$(aws ssm get-parameter --region us-east-1 --name ci.datadog-agent.docker_hub_login --with-decryption --query "Parameter.Value" --out text)
- aws ssm get-parameter --region us-east-1 --name ci.datadog-agent.docker_hub_pwd --with-decryption --query "Parameter.Value" --out text | docker login --username "$DOCKER_REGISTRY_LOGIN" --password-stdin docker.io
# Build
- GO_BUILD_ARGS=$(cat go.env | sed -e 's/^/--build-arg /' | tr '\n' ' ')
- docker build --build-arg BASE_IMAGE=$BASE_IMAGE --build-arg DD_TARGET_ARCH=$DD_TARGET_ARCH $GO_BUILD_ARGS $CUSTOM_BUILD_ARGS --tag datadog/agent-buildimages-${IMAGE}${ECR_TEST_ONLY}:$IMAGE_VERSION --file $DOCKERFILE .
- |
if [ "$CI_PIPELINE_SOURCE" != "schedule" ]; then
docker push datadog/agent-buildimages-${IMAGE}${ECR_TEST_ONLY}:$IMAGE_VERSION
fi
after_script:
- if [ "${CI_JOB_STATUS}" != 'success' ]; then echo -e "\033[0;32m\033[1mBuild failed.\033[0m"; exit 0; fi
- |
if [ "$CI_PIPELINE_SOURCE" != "schedule" ]; then
echo -e "\033[0;32m\033[1mImage datadog/agent-buildimages-${IMAGE}${ECR_TEST_ONLY}:$IMAGE_VERSION is available.\033[0m"
else
echo -e "\033[0;33m\033[1mScheduled pipeline, image push skipped.\033[0m"
fi

build_gitlab_agent_deploy:
extends: [.build, .x64]
Expand Down Expand Up @@ -513,58 +486,6 @@ release_windows:
- IMAGE: windows_ltsc2022_x64
DOCKERHUB_TAG_PREFIX: ltsc2022

release_circleci_runner:
stage: release
needs: ["build_circleci_runner"]
variables:
IMAGE: circleci-runner
rules:
- !reference [.on_default_branch_push]
tags: ["arch:amd64"]
image: "${CI_IMAGE}"
script:
- DOCKER_REGISTRY_LOGIN=$(aws ssm get-parameter --region us-east-1 --name ci.datadog-agent.docker_hub_login --with-decryption --query "Parameter.Value" --out text)
- aws ssm get-parameter --region us-east-1 --name ci.datadog-agent.docker_hub_pwd --with-decryption --query "Parameter.Value" --out text | docker login --username "$DOCKER_REGISTRY_LOGIN" --password-stdin docker.io
- SRC_IMAGE=datadog/agent-buildimages-$IMAGE:$IMAGE_VERSION
# Tag as latest in dockerhub registry
- crane tag $SRC_IMAGE latest

dev_release_circleci_runner_gcr:
stage: release
needs: ["build_circleci_runner"]
rules:
- !reference [.on_push]
variables:
# Don't rely on ${IMAGE_VERSION} or any variables that is referencing
# other variables here.
# They are not expended recursively and end up provided verbatim to the
# downstream pipeline which then extends the variable with its own CI
# variables, which causes invalid image tags to be used
IMG_SOURCES: datadog/agent-buildimages-circleci-runner${ECR_TEST_ONLY}:v$CI_PIPELINE_ID-${CI_COMMIT_SHORT_SHA}
IMG_DESTINATIONS: agent-circleci-runner${ECR_TEST_ONLY}:v$CI_PIPELINE_ID-${CI_COMMIT_SHORT_SHA}
IMG_REGISTRIES: gcr-datadoghq
trigger:
project: DataDog/public-images
strategy: depend

release_circleci_runner_gcr:
stage: release
needs: ["build_circleci_runner"]
rules:
- !reference [.on_default_branch_push]
variables:
# Don't rely on ${IMAGE_VERSION} or any variables that is referencing
# other variables here.
# They are not expended recursively and end up provided verbatim to the
# downstream pipeline which then extends the variable with its own CI
# variables, which causes invalid image tags to be used
IMG_SOURCES: datadog/agent-buildimages-circleci-runner${ECR_TEST_ONLY}:v$CI_PIPELINE_ID-${CI_COMMIT_SHORT_SHA}
IMG_DESTINATIONS: agent-circleci-runner${ECR_TEST_ONLY}:v$CI_PIPELINE_ID-${CI_COMMIT_SHORT_SHA}
IMG_REGISTRIES: gcr-datadoghq
trigger:
project: DataDog/public-images
strategy: depend

notify-images-available:
extends: .slack-notifier-base
stage: availability_message # Created a new stage to depend upon all image builds without explicitely name them in 'needs'
Expand Down
100 changes: 0 additions & 100 deletions circleci/Dockerfile

This file was deleted.

Loading