Skip to content

Commit 5070895

Browse files
committed
Add tag builds
1 parent 4863441 commit 5070895

File tree

2 files changed

+18
-4
lines changed

2 files changed

+18
-4
lines changed

.buildkite/pipeline.deploy.yml

Lines changed: 14 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -3,10 +3,21 @@ steps:
33
plugins:
44
docker-compose#v3.9.0:
55
run: tests
6+
67
- wait
7-
- label: ":docker: :rocket:"
8+
9+
- label: ":docker: :rocket: Latest"
810
plugins:
911
docker-login#v2.1.0: ~
1012
docker-compose#v3.9.0:
11-
push: release
12-
branches: main
13+
push: latest
14+
if: |
15+
build.branch == 'main'
16+
17+
- label: ":docker: :rocket: Tag"
18+
plugins:
19+
docker-login#v2.1.0: ~
20+
docker-compose#v3.9.0:
21+
push: tag
22+
if: |
23+
build.tag != null

docker-compose.yml

Lines changed: 4 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -4,6 +4,9 @@ services:
44
build: .
55
volumes:
66
- "./tests/test-plugin:/plugin"
7-
release:
7+
latest:
88
build: .
99
image: buildkite/plugin-tester:latest
10+
tag:
11+
build: .
12+
image: "buildkite/plugin-tester:${BUILDKITE_TAG}"

0 commit comments

Comments
 (0)