diff --git a/.buildkite/bk.integration-fips.pipeline.yml b/.buildkite/bk.integration-fips.pipeline.yml index 5e84b150189..2f5fff469f1 100644 --- a/.buildkite/bk.integration-fips.pipeline.yml +++ b/.buildkite/bk.integration-fips.pipeline.yml @@ -15,10 +15,10 @@ steps: env: FIPS: "true" CUSTOM_IMAGE_TAG: "git-${BUILDKITE_COMMIT:0:12}" - CI_ELASTIC_AGENT_DOCKER_IMAGE: "docker.elastic.co/beats-ci/elastic-agent-fips-cloud" - TF_VAR_integration_server_docker_image: "docker.elastic.co/beats-ci/elastic-agent-fips-cloud:git-${BUILDKITE_COMMIT:0:12}" + CI_ELASTIC_AGENT_DOCKER_IMAGE: "docker.elastic.co/beats-ci/elastic-agent-cloud-fips" + TF_VAR_integration_server_docker_image: "docker.elastic.co/beats-ci/elastic-agent-cloud-fips:git-${BUILDKITE_COMMIT:0:12}" command: | - buildkite-agent artifact download build/distributions/elastic-agent-fips-cloud-*-linux-amd64.docker.tar.gz . --step 'packaging-containers-x86-64-fips' + buildkite-agent artifact download build/distributions/elastic-agent-cloud-fips-*-linux-amd64.docker.tar.gz . --step 'packaging-containers-x86-64-fips' mage cloud:load mage cloud:push agents: @@ -36,8 +36,8 @@ steps: env: ASDF_TERRAFORM_VERSION: 1.9.2 CUSTOM_IMAGE_TAG: "git-${BUILDKITE_COMMIT:0:12}" - CI_ELASTIC_AGENT_DOCKER_IMAGE: "docker.elastic.co/beats-ci/elastic-agent-fips-cloud" - TF_VAR_integration_server_docker_image: "docker.elastic.co/beats-ci/elastic-agent-fips-cloud:git-${BUILDKITE_COMMIT:0:12}" + CI_ELASTIC_AGENT_DOCKER_IMAGE: "docker.elastic.co/beats-ci/elastic-agent-cloud-fips" + TF_VAR_integration_server_docker_image: "docker.elastic.co/beats-ci/elastic-agent-cloud-fips:git-${BUILDKITE_COMMIT:0:12}" command: | source .buildkite/scripts/steps/ess_start.sh artifact_paths: @@ -58,8 +58,8 @@ steps: env: FIPS: "true" CUSTOM_IMAGE_TAG: "git-${BUILDKITE_COMMIT:0:12}" - CI_ELASTIC_AGENT_DOCKER_IMAGE: "docker.elastic.co/beats-ci/elastic-agent-fips-cloud" - TF_VAR_integration_server_docker_image: "docker.elastic.co/beats-ci/elastic-agent-fips-cloud:git-${BUILDKITE_COMMIT:0:12}" + CI_ELASTIC_AGENT_DOCKER_IMAGE: "docker.elastic.co/beats-ci/elastic-agent-cloud-fips" + TF_VAR_integration_server_docker_image: "docker.elastic.co/beats-ci/elastic-agent-cloud-fips:git-${BUILDKITE_COMMIT:0:12}" command: | buildkite-agent artifact download build/distributions/** . --step 'packaging-ubuntu-x86-64-fips' .buildkite/scripts/steps/integration_tests_tf.sh {{matrix.groups}} {{matrix.sudo}} @@ -87,8 +87,8 @@ steps: env: FIPS: "true" CUSTOM_IMAGE_TAG: "git-${BUILDKITE_COMMIT:0:12}" - CI_ELASTIC_AGENT_DOCKER_IMAGE: "docker.elastic.co/beats-ci/elastic-agent-fips-cloud" - TF_VAR_integration_server_docker_image: "docker.elastic.co/beats-ci/elastic-agent-fips-cloud:git-${BUILDKITE_COMMIT:0:12}" + CI_ELASTIC_AGENT_DOCKER_IMAGE: "docker.elastic.co/beats-ci/elastic-agent-cloud-fips" + TF_VAR_integration_server_docker_image: "docker.elastic.co/beats-ci/elastic-agent-cloud-fips:git-${BUILDKITE_COMMIT:0:12}" command: | buildkite-agent artifact download build/distributions/** . --step 'packaging-ubuntu-arm64-fips' .buildkite/scripts/steps/integration_tests_tf.sh {{matrix.groups}} {{matrix.sudo}} diff --git a/dev-tools/packaging/packages.yml b/dev-tools/packaging/packages.yml index 37479ac9619..890396c5345 100644 --- a/dev-tools/packaging/packages.yml +++ b/dev-tools/packaging/packages.yml @@ -1578,40 +1578,6 @@ specs: '{{.BeatName}}{{.BinaryExt}}': source: ./build/golang-crossbuild/{{.BeatName}}-{{.GOOS}}-{{.Platform.Arch}}{{.BinaryExt}} - # remove this spec once the elastic-agent-cloud-fips below is correctly uploaded as a DRA - - os: linux - arch: amd64 - types: [ docker ] - spec: - <<: *docker_fips_spec - <<: *agent_docker_fips_spec - # The cloud image is always based on Wolfi - <<: *docker_builder_spec - <<: *agent_docker_cloud_fips_spec - <<: *elastic_license_for_binaries - name: "elastic-agent-fips-cloud" - docker_image_name_template: "{{.BeatName}}-fips-cloud" - files: - '{{.BeatName}}{{.BinaryExt}}': - source: ./build/golang-crossbuild/{{.BeatName}}-{{.GOOS}}-{{.Platform.Arch}}{{.BinaryExt}} - - # remove this spec once the elastic-agent-cloud-fips below is correctly uploaded as a DRA - - os: linux - arch: arm64 - types: [ docker ] - spec: - <<: *docker_fips_spec - <<: *agent_docker_fips_spec - # The cloud image is always based on Wolfi - <<: *docker_builder_arm_spec - <<: *agent_docker_cloud_fips_spec - <<: *elastic_license_for_binaries - name: "elastic-agent-fips-cloud" - docker_image_name_template: "{{.BeatName}}-fips-cloud" - files: - '{{.BeatName}}{{.BinaryExt}}': - source: ./build/golang-crossbuild/{{.BeatName}}-{{.GOOS}}-{{.Platform.Arch}}{{.BinaryExt}} - - os: linux arch: amd64 types: [ docker ] diff --git a/magefile.go b/magefile.go index 5fe0eeced24..ffc0fb50bff 100644 --- a/magefile.go +++ b/magefile.go @@ -1007,7 +1007,7 @@ func (Cloud) Load() error { source := "build/distributions/elastic-agent-cloud-" + version + "-linux-" + runtime.GOARCH + ".docker.tar.gz" if fipsVal { - source = "build/distributions/elastic-agent-fips-cloud-" + version + "-linux-" + runtime.GOARCH + ".docker.tar.gz" + source = "build/distributions/elastic-agent-cloud-fips-" + version + "-linux-" + runtime.GOARCH + ".docker.tar.gz" } if envSource, ok := os.LookupEnv("DOCKER_IMPORT_SOURCE"); ok && envSource != "" { source = envSource @@ -1047,7 +1047,7 @@ func (Cloud) Push() error { sourceCloudImageName := fmt.Sprintf("docker.elastic.co/beats-ci/elastic-agent-cloud:%s", version) if fipsVal { - sourceCloudImageName = fmt.Sprintf("docker.elastic.co/beats-ci/elastic-agent-fips-cloud:%s", version) + sourceCloudImageName = fmt.Sprintf("docker.elastic.co/beats-ci/elastic-agent-cloud-fips:%s", version) } var targetCloudImageName string if customImage, isPresent := os.LookupEnv("CI_ELASTIC_AGENT_DOCKER_IMAGE"); isPresent && len(customImage) > 0 {