From 1a78d4401c235c57e2dacbaf85aa273c7cfffff4 Mon Sep 17 00:00:00 2001 From: "chosw1002@naver.com" Date: Thu, 11 Jan 2024 19:27:31 +0900 Subject: [PATCH] =?UTF-8?q?chore:=20docker/build-push-action=EC=9C=BC?= =?UTF-8?q?=EB=A1=9C=20=EB=8C=80=EC=B2=B4?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- .github/workflows/cicd.yml | 10 ++++++---- 1 file changed, 6 insertions(+), 4 deletions(-) diff --git a/.github/workflows/cicd.yml b/.github/workflows/cicd.yml index f2440ea..6f6fc70 100644 --- a/.github/workflows/cicd.yml +++ b/.github/workflows/cicd.yml @@ -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: