From 507089588b8ec561486de0f480e2d0861b242db0 Mon Sep 17 00:00:00 2001 From: Tim Lucas Date: Sun, 5 Jun 2022 13:52:52 +1000 Subject: [PATCH] Add tag builds --- .buildkite/pipeline.deploy.yml | 17 ++++++++++++++--- docker-compose.yml | 5 ++++- 2 files changed, 18 insertions(+), 4 deletions(-) diff --git a/.buildkite/pipeline.deploy.yml b/.buildkite/pipeline.deploy.yml index ec4a2bd..9c6f6b4 100644 --- a/.buildkite/pipeline.deploy.yml +++ b/.buildkite/pipeline.deploy.yml @@ -3,10 +3,21 @@ steps: plugins: docker-compose#v3.9.0: run: tests + - wait - - label: ":docker: :rocket:" + + - label: ":docker: :rocket: Latest" plugins: docker-login#v2.1.0: ~ docker-compose#v3.9.0: - push: release - branches: main + push: latest + if: | + build.branch == 'main' + + - label: ":docker: :rocket: Tag" + plugins: + docker-login#v2.1.0: ~ + docker-compose#v3.9.0: + push: tag + if: | + build.tag != null diff --git a/docker-compose.yml b/docker-compose.yml index 9e19e07..09068ed 100644 --- a/docker-compose.yml +++ b/docker-compose.yml @@ -4,6 +4,9 @@ services: build: . volumes: - "./tests/test-plugin:/plugin" - release: + latest: build: . image: buildkite/plugin-tester:latest + tag: + build: . + image: "buildkite/plugin-tester:${BUILDKITE_TAG}"