diff --git a/ci/workflows/docker.yml b/ci/workflows/docker.yml index 91b3dadfcf28..d313195ae2eb 100644 --- a/ci/workflows/docker.yml +++ b/ci/workflows/docker.yml @@ -44,7 +44,7 @@ steps: DOCKER_TOKEN: docker-token retry: *auto-retry - - label: "release" + - label: "pre build binary" command: "ci/scripts/release.sh" plugins: - seek-oss/aws-sm#v2.3.1: diff --git a/ci/workflows/main-cron.yml b/ci/workflows/main-cron.yml index 1be478a3c21b..462bdbf52603 100644 --- a/ci/workflows/main-cron.yml +++ b/ci/workflows/main-cron.yml @@ -581,3 +581,66 @@ steps: - "17" timeout_in_minutes: 10 retry: *auto-retry + + - label: "release" + command: "ci/scripts/release.sh" + if: build.tag != null + plugins: + - seek-oss/aws-sm#v2.3.1: + env: + GITHUB_TOKEN: github-token + - docker-compose#v4.9.0: + run: release-env + config: ci/docker-compose.yml + mount-buildkite-agent: true + environment: + - GITHUB_TOKEN + - BUILDKITE_TAG + - BUILDKITE_SOURCE + timeout_in_minutes: 60 + retry: *auto-retry + + - label: "release docker image: amd64" + command: "ci/scripts/docker.sh" + key: "build-amd64" + if: build.tag != null + plugins: + - seek-oss/aws-sm#v2.3.1: + env: + GHCR_USERNAME: ghcr-username + GHCR_TOKEN: ghcr-token + DOCKER_TOKEN: docker-token + GITHUB_TOKEN: github-token + timeout_in_minutes: 60 + retry: *auto-retry + + - label: "docker-build-push: aarch64" + command: "ci/scripts/docker.sh" + key: "build-aarch64" + if: build.tag != null + plugins: + - seek-oss/aws-sm#v2.3.1: + env: + GHCR_USERNAME: ghcr-username + GHCR_TOKEN: ghcr-token + DOCKER_TOKEN: docker-token + GITHUB_TOKEN: github-token + timeout_in_minutes: 60 + agents: + queue: "linux-arm64" + retry: *auto-retry + + - label: "multi arch image create push" + command: "ci/scripts/multi-arch-docker.sh" + if: build.tag != null + depends_on: + - "build-amd64" + - "build-aarch64" + plugins: + - seek-oss/aws-sm#v2.3.1: + env: + GHCR_USERNAME: ghcr-username + GHCR_TOKEN: ghcr-token + DOCKER_TOKEN: docker-token + timeout_in_minutes: 10 + retry: *auto-retry