Skip to content

Commit

Permalink
cicd : git actions ์ˆ˜์ •
Browse files Browse the repository at this point in the history
  • Loading branch information
cowboysj committed Nov 13, 2024
1 parent 34c14aa commit a996065
Showing 1 changed file with 4 additions and 8 deletions.
12 changes: 4 additions & 8 deletions .github/workflows/dev-deploy.yml
Original file line number Diff line number Diff line change
Expand Up @@ -50,15 +50,11 @@ jobs:
tags: |
type=sha,prefix=
type=ref,event=branch
- name: Build and push Docker image
uses: docker/build-push-action@v4
with:
context: .
push: true
tags:
${{ secrets.DOCKER_USERNAME }}/shoot:latest
${{ secrets.DOCKER_USERNAME }}/shoot:${{ github.sha }}
run: |
docker build . -t ${{ secrets.DOCKER_USERNAME }}/shoot:latest
docker push ${{ secrets.DOCKER_USERNAME }}/shoot:latest
- name: Deploy on EC2
uses: appleboy/ssh-action@master
Expand Down

0 comments on commit a996065

Please sign in to comment.