add test with tag

This commit is contained in:
Stefan Riepenhausen 2024-06-13 15:49:11 +02:00
parent c5ed8be31b
commit e115a87ae5
3 changed files with 21 additions and 2 deletions

14
test.sh
View File

@ -30,7 +30,7 @@ function test_with_minimal_vars_compose(){
cp $TESTS/compose_config.mk config.mk cp $TESTS/compose_config.mk config.mk
cp $TESTS/docker-compose.yml . cp $TESTS/docker-compose.yml .
make deploy make deploy
rm -f docker-compose.yml rm -f docker-compose.yml config.mk
} }
function test_with_minimal_vars_compose_file(){ function test_with_minimal_vars_compose_file(){
@ -38,7 +38,16 @@ function test_with_minimal_vars_compose_file(){
cp $TESTS/compose_file_config.mk config.mk cp $TESTS/compose_file_config.mk config.mk
cp $TESTS/docker-compose.yml . cp $TESTS/docker-compose.yml .
make deploy make deploy
rm -f docker-compose.yml rm -f docker-compose.yml config.mk
}
function test_with_minimal_vars_compose_and_tag(){
echo "::::::::: $FUNCNAME ::::::::::::"
cp $TESTS/compose_config.tag.mk config.mk
cp $TESTS/docker-compose.tag.yml docker-compose.yml
echo "TAG=3.17" > .env
make deploy
rm -f docker-compose.yml config.mk
} }
prepdir prepdir
@ -46,5 +55,6 @@ prepdir
test_with_minimal_vars_apt test_with_minimal_vars_apt
test_with_minimal_vars_compose test_with_minimal_vars_compose
test_with_minimal_vars_compose_file test_with_minimal_vars_compose_file
test_with_minimal_vars_compose_and_tag
cleandir cleandir

View File

@ -0,0 +1,5 @@
DEPLOY_NAME = make-deploy-test-compose-tag
DEPLOY_PATH = /tmp
DEPLOY_HOSTS = localhost
DEPLOY_TYPE = compose
SSH_USER = $(USER)

View File

@ -0,0 +1,4 @@
services:
curl:
image: "alpine:${TAG}"
command: cat /etc/os-release