Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Add service label build options #429

Merged
merged 8 commits into from
Feb 28, 2024
Merged
Changes from 1 commit
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
Prev Previous commit
add target test
Signed-off-by: Jared Quick <jared.quick@salesforce.com>
jquick committed Feb 28, 2024
commit 7d923ea3ef938d8ba2d88137d1b8b2089bc13957
17 changes: 17 additions & 0 deletions tests/image-override-file.bats
Original file line number Diff line number Diff line change
@@ -36,6 +36,23 @@ EOF
assert_output "$myservice_override_file2"
}

@test "Build a docker-compose file with target" {
myservice_override_file3=$(cat <<-EOF
version: '3.2'
services:
myservice:
image: newimage:1.0.0
build:
target: build
EOF
)

run build_image_override_file_with_version "3.2" "myservice" "newimage:1.0.0" "build" 0

assert_success
assert_output "$myservice_override_file3"
}

@test "Build a docker-compose file with cache-from" {
myservice_override_file3=$(cat <<-EOF
version: '3.2'