diff --git a/ci/deploy.yaml b/ci/deploy.yaml index 4345aa1..cfa3053 100644 --- a/ci/deploy.yaml +++ b/ci/deploy.yaml @@ -46,5 +46,7 @@ loop: - src: run.sh dest: "{{ pywb_dir }}/run-{{ env }}.sh" + - src: run.sh + dest: "{{ pywb_dir }}/stop-{{ env }}.sh" # - dump-screenshots.sh # - update_vyvoj.sh diff --git a/ci/templates/stop.sh b/ci/templates/stop.sh new file mode 100644 index 0000000..2709ab5 --- /dev/null +++ b/ci/templates/stop.sh @@ -0,0 +1,9 @@ +#!/usr/bin/env bash + +# Make Bash Great Again +set -o errexit # exit when a command fails. +set -o nounset # exit when using undeclared variables +set -o pipefail # catch non-zero exit code in pipes +# set -o xtrace # uncomment for bug hunting + +sudo docker-compose -f {{ pywb_dir }}/docker-compose-test.yaml -p pywb-test stop \ No newline at end of file