Skip to content

Commit

Permalink
fix: Add back script to create target directory before deployment
Browse files Browse the repository at this point in the history
  • Loading branch information
Armadillidiid committed Mar 18, 2024
1 parent b232fbd commit 30be1d1
Showing 1 changed file with 3 additions and 1 deletion.
4 changes: 3 additions & 1 deletion .github/workflows/main.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -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 }}"
Expand All @@ -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

0 comments on commit 30be1d1

Please sign in to comment.