Skip to content

Commit

Permalink
Merge pull request #10 from netCard-TUK/wonchan
Browse files Browse the repository at this point in the history
자동 배포 CICD 플로우 수정
  • Loading branch information
Leewonchan14 authored Jan 19, 2024
2 parents 2111d4d + cd023d9 commit 157fed6
Showing 1 changed file with 7 additions and 6 deletions.
13 changes: 7 additions & 6 deletions .github/workflows/deploy.yml
Original file line number Diff line number Diff line change
Expand Up @@ -12,16 +12,17 @@ jobs:
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@v3
- name: Build docker file
uses: docker/build-push-action@v2
- name: login docker
uses: docker/login-action@v1
with:
context: .
file: ./Dockerfile
push: true
tags: ${{ secrets.DOCKER_USERNAME }}/netcard:latest
username: ${{ secrets.DOCKER_USERNAME }}
password: ${{ secrets.DOCKER_PASSWORD }}

- name: Build and push
run: |
docker build -t ${{ secrets.DOCKER_USERNAME }}/netcard:latest .
docker push ${{ secrets.DOCKER_USERNAME }}/netcard:latest
- name: Deploy to EC2
uses: appleboy/scp-action@master
with:
Expand Down

0 comments on commit 157fed6

Please sign in to comment.