Skip to content

Commit

Permalink
chore: ci-cd 수정
Browse files Browse the repository at this point in the history
  • Loading branch information
Hoya324 committed Aug 11, 2024
1 parent 0e4cbf7 commit cb938c8
Showing 1 changed file with 3 additions and 5 deletions.
8 changes: 3 additions & 5 deletions .github/workflows/ci-cd.yml
Original file line number Diff line number Diff line change
Expand Up @@ -94,17 +94,15 @@ jobs:
- name: Create and send .env file to EC2 instance
run: echo "DOCKER_REPO=${{ secrets.DOCKER_REPO }}" > .env && echo "IMAGE_TAG=develop-${{ github.run_number }}" >> .env

- name: Copy files to EC2 instance
- name: Copy docker-compose into instance
uses: appleboy/scp-action@master
with:
host: ${{ secrets.PUBLIC_DNS }}
username: ${{ secrets.USERNAME }}
key: ${{ secrets.PEM_KEY }}
source: |
.env
docker-compose.yml
source: "docker-compose.yml"
target: "/home/${{ secrets.USERNAME }}"
strip_components: 0
strip_components: 3
overwrite: true
debug: true

Expand Down

0 comments on commit cb938c8

Please sign in to comment.