From 1c8764bd9da4b1ce518c1af2e8b1037c8fdb5b2b Mon Sep 17 00:00:00 2001 From: glen coden Date: Thu, 5 Jan 2023 22:45:44 +0100 Subject: [PATCH] validate cache and update databases in staging deploy --- .github/workflows/deploy-staging.yml | 6 ++++++ 1 file changed, 6 insertions(+) diff --git a/.github/workflows/deploy-staging.yml b/.github/workflows/deploy-staging.yml index d31e830..d1c2287 100644 --- a/.github/workflows/deploy-staging.yml +++ b/.github/workflows/deploy-staging.yml @@ -22,7 +22,13 @@ jobs: echo "${{ secrets.ENV_LIVE }}" > .env echo "${{ secrets.ENV_STAGING }}" > .env.staging cat .env.staging >> .env + bash contexts/tsc/scripts/validate-cache.sh docker compose down --rmi local docker image prune -f docker compose up -d --build + ENDSSH + - name: init and remove databases as listed in .env + run: | + ssh root@${{ secrets.SERVER_ADDRESS_STAGING }} <<"ENDSSH" + bash /root/apps/wolke/scripts/init-databases.sh ENDSSH \ No newline at end of file