File tree Expand file tree Collapse file tree
Expand file tree Collapse file tree Original file line number Diff line number Diff line change @@ -296,23 +296,6 @@ setup_file() {
296296 unstub docker
297297}
298298
299- @test " Build with secrets" {
300- export BUILDKITE_PLUGIN_DOCKER_COMPOSE_BUILD=myservice
301- export BUILDKITE_PLUGIN_DOCKER_COMPOSE_SECRETS_0=' id=test,file=~/.test'
302- export BUILDKITE_PLUGIN_DOCKER_COMPOSE_SECRETS_1=' id=SECRET_VAR'
303-
304- stub docker \
305- " compose -f docker-compose.yml -p buildkite1111 build --pull --secret \* --secret \* \* : echo built \$ {12} with secrets \$ {9} and \$ {11}"
306-
307- run " $PWD " /hooks/command
308-
309- assert_success
310- assert_output --partial " built myservice"
311- assert_output --partial " with secrets id=test,file=~/.test and id=SECRET_VAR"
312-
313- unstub docker
314- }
315-
316299@test " Build without pull" {
317300 export BUILDKITE_PLUGIN_DOCKER_COMPOSE_BUILD=myservice
318301 export BUILDKITE_PLUGIN_DOCKER_COMPOSE_SKIP_PULL=true
Original file line number Diff line number Diff line change @@ -319,23 +319,6 @@ setup_file() {
319319 unstub docker-compose
320320}
321321
322- @test " Build with secrets" {
323- export BUILDKITE_PLUGIN_DOCKER_COMPOSE_BUILD=myservice
324- export BUILDKITE_PLUGIN_DOCKER_COMPOSE_SECRETS_0=' id=test,file=~/.test'
325- export BUILDKITE_PLUGIN_DOCKER_COMPOSE_SECRETS_1=' id=SECRET_VAR'
326-
327- stub docker-compose \
328- " -f docker-compose.yml -p buildkite1111 build --pull --secret \* --secret \* \* : echo built \$ {11} with secrets \$ {8} and \$ {10}"
329-
330- run " $PWD " /hooks/command
331-
332- assert_success
333- assert_output --partial " built myservice"
334- assert_output --partial " with secrets id=test,file=~/.test and id=SECRET_VAR"
335-
336- unstub docker-compose
337- }
338-
339322@test " Build without pull" {
340323 export BUILDKITE_PLUGIN_DOCKER_COMPOSE_BUILD=myservice
341324 export BUILDKITE_PLUGIN_DOCKER_COMPOSE_SKIP_PULL=true
You can’t perform that action at this time.
0 commit comments