Skip to content

Commit

Permalink
chore(ci): move release jobs to main-cron pipeline (#12339)
Browse files Browse the repository at this point in the history
  • Loading branch information
huangjw806 authored Sep 18, 2023
1 parent b37a19c commit cbdc1ac
Show file tree
Hide file tree
Showing 2 changed files with 64 additions and 1 deletion.
2 changes: 1 addition & 1 deletion ci/workflows/docker.yml
Original file line number Diff line number Diff line change
Expand Up @@ -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:
Expand Down
63 changes: 63 additions & 0 deletions ci/workflows/main-cron.yml
Original file line number Diff line number Diff line change
Expand Up @@ -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

0 comments on commit cbdc1ac

Please sign in to comment.