From 30be1d109f9c73d58beeadac04d6a1b044ce8cf8 Mon Sep 17 00:00:00 2001 From: Emmanuel Isenah Date: Mon, 18 Mar 2024 21:55:03 +0100 Subject: [PATCH] fix: Add back script to create target directory before deployment --- .github/workflows/main.yaml | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-) diff --git a/.github/workflows/main.yaml b/.github/workflows/main.yaml index 0690705..a705fa3 100644 --- a/.github/workflows/main.yaml +++ b/.github/workflows/main.yaml @@ -57,6 +57,8 @@ jobs: REMOTE_USER: ${{ secrets.USERNAME }} TARGET: ${{ secrets.TARGET_DIR }} SOURCE: "docker-compose.yaml" + SCRIPT_BEFORE: | + mkdir -p ${{ secrets.TARGET_DIR }} SCRIPT_AFTER: | aws ecr get-login-password --region "${{ secrets.AWS_REGION }}" | docker login --username AWS --password-stdin "${{ steps.login-ecr.outputs.registry }}" cd "${{ secrets.TARGET_DIR }}" @@ -79,5 +81,5 @@ jobs: docker compose pull docker compose down docker compose up -d - # rm -f local_ssh_script-before-*.sh + rm -f local_ssh_script-before-*.sh docker system prune -af