Skip to content

Commit

Permalink
chore: docker/build-push-action으로 대체
Browse files Browse the repository at this point in the history
  • Loading branch information
Sangwook02 committed Jan 11, 2024
1 parent a55b25d commit 1a78d44
Showing 1 changed file with 6 additions and 4 deletions.
10 changes: 6 additions & 4 deletions .github/workflows/cicd.yml
Original file line number Diff line number Diff line change
Expand Up @@ -38,10 +38,12 @@ jobs:
with:
username: ${{ secrets.DOCKERHUB_USERNAME }}
password: ${{ secrets.DOCKERHUB_TOKEN }}
- name: Build Docker
run: docker build --platform linux/amd64 -t ${{ secrets.DOCKERHUB_USERNAME }}/infra_practice_server .
- name: Push Docker
run: docker push ${{ secrets.DOCKERHUB_USERNAME }}/infra_practice_server:latest

- name: Docker에 Build & Push
uses: docker/build-push-action@v5
with:
push: true
tags: ${{ secrets.DOCKERHUB_USERNAME }}/infra_practice_server:latest


deploy:
Expand Down

0 comments on commit 1a78d44

Please sign in to comment.