Skip to content

Commit

Permalink
fix : .yml에서 docker-compose 관련 코드 제거
Browse files Browse the repository at this point in the history
  • Loading branch information
sycuuui committed Mar 25, 2024
1 parent fb40964 commit 49eb45c
Showing 1 changed file with 0 additions and 15 deletions.
15 changes: 0 additions & 15 deletions .github/workflows/github-actions.yml
Original file line number Diff line number Diff line change
Expand Up @@ -24,10 +24,6 @@ jobs:

- name: Create .env file
run: |
echo "AWS_ACCESS_KEY_ID=${{secrets.AWS_ACCESS_KEY}}" > .env
echo "AWS_SECRET_ACCESS_KEY=${{secrets.AWS_SECRET_KEY}}" >> .env
echo "BUCKET_NAME=${{secrets.BUCKET_NAME}}" >> .env
echo "REGION_NAME=${{secrets.REGION_NAME}}" >> .env
echo "DOCKERHUB_NAME=${{secrets.DOCKERHUB_NAME}}" >> .env
echo "DOCKERHUB_REPOSITORY=${{secrets.DOCKERHUB_REPOSITORY}}" >> .env
Expand All @@ -44,17 +40,6 @@ jobs:
docker build -t ${{ secrets.DOCKERHUB_NAME }}/${{ secrets.DOCKERHUB_REPOSITORY }}:latest .
docker push ${{ secrets.DOCKERHUB_NAME }}/${{ secrets.DOCKERHUB_REPOSITORY }}:latest
# Docker-compose 파일 및 .env 파일 EC2로 전송
- name: SCP docker-compose file to EC2
uses: appleboy/scp-action@master
with:
host: ${{ secrets.HOST_PROD }}
username: ubuntu
key: ${{ secrets.PRIVATE_KEY }}
source: "docker-compose.yml"
target: "/home/ubuntu/server-flask"
port: 22

- name: SCP .env file to EC2
uses: appleboy/scp-action@master
with:
Expand Down

0 comments on commit 49eb45c

Please sign in to comment.