Skip to content

Commit

Permalink
Merge pull request #33 from DrInTech22/integration
Browse files Browse the repository at this point in the history
fix: workflow config error
  • Loading branch information
DrInTech22 authored Dec 16, 2024
2 parents 1e38ac2 + db234dd commit 9ebd17a
Show file tree
Hide file tree
Showing 2 changed files with 10 additions and 0 deletions.
9 changes: 9 additions & 0 deletions .github/workflows/cd-backend.yml
Original file line number Diff line number Diff line change
Expand Up @@ -18,6 +18,13 @@ jobs:
- name: Checkout code
uses: actions/checkout@v2

- name: Prepare Frontend Env
env:
FRONTEND_ENV: ${{ secrets.FRONTEND_ENV }}
run: |
echo "$FRONTEND_ENV" > frontend.env
- name: Get terraform-apply.yml Run ID
id: get-run-id
run: |
Expand Down Expand Up @@ -71,5 +78,7 @@ jobs:
username: ${{ vars.EC2_USER }}
key: ${{ secrets.PRIVATE_KEY }}
script: |
sudo chown -R root:root /home/ubuntu/*.env
mv backend.env backend/.env
mv frontend.env frontend/.env
docker compose up -d --no-deps --force-recreate backend db adminer
1 change: 1 addition & 0 deletions .github/workflows/cd-frontend.yml
Original file line number Diff line number Diff line change
Expand Up @@ -33,6 +33,7 @@ jobs:
key: ${{ secrets.SERVER_SSH_KEY }}
source: "frontend.env, compose.yml"
target: "~/"
overwrite: true

- name: Use SSH Action
uses: appleboy/[email protected]
Expand Down

0 comments on commit 9ebd17a

Please sign in to comment.