diff --git a/.github/workflows/github-actions.yml b/.github/workflows/github-actions.yml index 156661c..8f5937f 100644 --- a/.github/workflows/github-actions.yml +++ b/.github/workflows/github-actions.yml @@ -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 @@ -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: