Fix deploy commands #404

Merged
telackey merged 2 commits from dboreham/fix-deploy-commands into main 2023-05-22 18:43:59 +00:00
3 changed files with 10 additions and 2 deletions
Showing only changes of commit 0035c48900 - Show all commits

View File

@ -35,5 +35,5 @@ jobs:
run: |
dockerd -H $DOCKER_HOST --userland-proxy=false &
sleep 5
- name: "Run smoke tests"
- name: "Run deploy tests"
run: ./tests/deploy/run-deploy-test.sh

View File

@ -25,5 +25,5 @@ jobs:
run: ./scripts/create_build_tag_file.sh
- name: "Build local shiv package"
run: ./scripts/build_shiv_package.sh
- name: "Run smoke tests"
- name: "Run deploy tests"
run: ./tests/deploy/run-deploy-test.sh

View File

@ -24,6 +24,14 @@ mkdir -p $CERC_REPO_BASE_DIR
$TEST_TARGET_SO --stack test setup-repositories
$TEST_TARGET_SO --stack test build-containers
$TEST_TARGET_SO --stack test deploy up
# Test deploy port command
deploy_port_output=$( $TEST_TARGET_SO --stack test deploy port test 80 )
if [[ "$deploy_port_output" =~ ^0.0.0.0:[1-9][0-9]* ]]; then
echo "Deploy port test: passed"
else
echo "Deploy port test: FAILED"
exit 1
fi
$TEST_TARGET_SO --stack test deploy down
# The next time we bring the container up the volume will be old (from the previous run above)
$TEST_TARGET_SO --stack test deploy up