Skip to content

Commit

Permalink
feat: manual-prod-deploy.yaml docker image push과정 추가
Browse files Browse the repository at this point in the history
  • Loading branch information
pminsung12 committed Aug 3, 2024
1 parent c4648e6 commit 5c915a1
Showing 1 changed file with 16 additions and 0 deletions.
16 changes: 16 additions & 0 deletions .github/workflows/manual-prod-deploy.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -16,6 +16,22 @@ jobs:
with:
ref: ${{ github.event.inputs.tag }}

- name: Set up Docker Buildx
uses: docker/setup-buildx-action@v2

- name: Login to DockerHub
uses: docker/login-action@v2
with:
username: ${{ secrets.DOCKERHUB_USERNAME }}
password: ${{ secrets.DOCKERHUB_TOKEN }}

- name: Build and push Docker image
uses: docker/build-push-action@v4
with:
context: .
push: true
tags: ${{ secrets.DOCKERHUB_USERNAME }}/spot-server:prod-${{ github.event.inputs.tag }}

- name: Deploy to PROD - AWS EC2
uses: appleboy/ssh-action@master
with:
Expand Down

0 comments on commit 5c915a1

Please sign in to comment.