From 0b90608443fcf049820c5aa2965617c8f16faeb2 Mon Sep 17 00:00:00 2001 From: Rudolf Date: Sun, 7 Apr 2024 18:12:58 +0200 Subject: [PATCH] =?UTF-8?q?Skript=20pro=20zastaven=C3=A9?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- ci/deploy.yaml | 2 ++ ci/templates/stop.sh | 9 +++++++++ 2 files changed, 11 insertions(+) create mode 100644 ci/templates/stop.sh 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