diff --git a/test/integration/docker/deployer/app/.kamal/hooks/post-deploy b/test/integration/docker/deployer/app/.kamal/hooks/post-deploy new file mode 100755 index 000000000..0fcc69202 --- /dev/null +++ b/test/integration/docker/deployer/app/.kamal/hooks/post-deploy @@ -0,0 +1,3 @@ +#!/bin/sh +echo "Deployed!" +mkdir -p /tmp/${TEST_ID} && touch /tmp/${TEST_ID}/post-deploy diff --git a/test/integration/docker/deployer/app/.kamal/hooks/pre-build b/test/integration/docker/deployer/app/.kamal/hooks/pre-build new file mode 100755 index 000000000..0cf78d884 --- /dev/null +++ b/test/integration/docker/deployer/app/.kamal/hooks/pre-build @@ -0,0 +1,3 @@ +#!/bin/sh +echo "About to build and push..." +mkdir -p /tmp/${TEST_ID} && touch /tmp/${TEST_ID}/pre-build diff --git a/test/integration/docker/deployer/app/.kamal/hooks/pre-connect b/test/integration/docker/deployer/app/.kamal/hooks/pre-connect new file mode 100755 index 000000000..e6c573d4b --- /dev/null +++ b/test/integration/docker/deployer/app/.kamal/hooks/pre-connect @@ -0,0 +1,8 @@ +#!/bin/sh + +echo "About to lock..." +if [ "$KAMAL_HOSTS" != "vm1,vm2" ]; then + echo "Expected hosts to be 'vm1,vm2', got $KAMAL_HOSTS" + exit 1 +fi +mkdir -p /tmp/${TEST_ID} && touch /tmp/${TEST_ID}/pre-connect diff --git a/test/integration/docker/deployer/app/.kamal/hooks/pre-deploy b/test/integration/docker/deployer/app/.kamal/hooks/pre-deploy new file mode 100755 index 000000000..32fa04c6e --- /dev/null +++ b/test/integration/docker/deployer/app/.kamal/hooks/pre-deploy @@ -0,0 +1,3 @@ +#!/bin/sh +echo "Deployed!" +mkdir -p /tmp/${TEST_ID} && touch /tmp/${TEST_ID}/pre-deploy