2019-12-27 18:07:53 +07:00
|
|
|
steps:
|
|
|
|
- label: ":hammer_and_wrench: Build & Test"
|
|
|
|
command: "authelia-scripts --log-level debug ci"
|
|
|
|
artifact_paths:
|
2020-01-07 06:12:37 +07:00
|
|
|
- "dist.tar.zst"
|
|
|
|
- "web.tar.zst"
|
2019-12-27 18:07:53 +07:00
|
|
|
key: "build"
|
|
|
|
|
|
|
|
- wait
|
|
|
|
|
|
|
|
- label: ":chrome: Integration Tests"
|
|
|
|
command: ".buildkite/steps/e2etests.sh | buildkite-agent pipeline upload"
|
|
|
|
key: "test"
|
|
|
|
|
2019-12-31 11:12:35 +07:00
|
|
|
- wait:
|
|
|
|
if: build.branch == "master" || build.branch =~ /^v/
|
2019-12-27 18:07:53 +07:00
|
|
|
|
|
|
|
- label: ":docker: Image Builds"
|
|
|
|
command: ".buildkite/steps/buildimages.sh | buildkite-agent pipeline upload"
|
2020-01-05 11:12:24 +07:00
|
|
|
agents:
|
|
|
|
build: "true"
|
2019-12-27 18:07:53 +07:00
|
|
|
branches: "master v*"
|
|
|
|
depends_on:
|
|
|
|
- "build"
|
|
|
|
key: "build-docker"
|
|
|
|
|
2020-01-17 03:57:44 +07:00
|
|
|
- wait:
|
|
|
|
if: build.branch == "master" || build.branch =~ /^v/
|
|
|
|
|
|
|
|
- label: ":docker: Image Deployments"
|
|
|
|
command: ".buildkite/steps/deployimages.sh | buildkite-agent pipeline upload"
|
|
|
|
branches: "master v*"
|
|
|
|
depends_on:
|
|
|
|
- "test"
|
|
|
|
- "build-docker"
|
|
|
|
|
|
|
|
- wait:
|
|
|
|
if: build.branch == "master" || build.branch =~ /^v/
|
|
|
|
|
|
|
|
- label: ":docker: Deploy Manifests"
|
|
|
|
command: "authelia-scripts docker push-manifest"
|
|
|
|
branches: "master v*"
|
|
|
|
env:
|
|
|
|
DOCKER_CLI_EXPERIMENTAL: "enabled"
|
|
|
|
|
|
|
|
- label: ":github: Deploy Artifacts"
|
|
|
|
command: ".buildkite/steps/ghartifacts.sh"
|
|
|
|
agents:
|
|
|
|
upload: "fast"
|
|
|
|
depends_on: "build-docker"
|
|
|
|
if: build.tag != null
|