From bb6ca95560aa6284f6ab59b9fb99a1ab4b16ce9d Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?=EC=95=88=EC=A0=95=ED=9B=84?= Date: Fri, 1 Nov 2024 21:34:12 +0900 Subject: [PATCH] chore: cicd front docker image --- .github/workflows/cd.yml | 6 +++++- 1 file changed, 5 insertions(+), 1 deletion(-) diff --git a/.github/workflows/cd.yml b/.github/workflows/cd.yml index 4060bef..c059bce 100644 --- a/.github/workflows/cd.yml +++ b/.github/workflows/cd.yml @@ -2,7 +2,7 @@ name: Backend CD # actions 이름 on: push: - branches: [ develop ] + branches: [ cicd/#48 ] jobs: deploy: @@ -53,12 +53,16 @@ jobs: cd hexagonal ../gradlew bootJar + - name: 도커 이미지 빌드 + run: sudo docker build -t ${{ secrets.DOCKER_FRONT_IMG }} --platform linux/amd64 . + - name: 도커 이미지 빌드 run: sudo docker build -t ${{ secrets.DOCKER_IMG }} --platform linux/amd64 . - name: 도커 이미지 push run: | sudo docker login -u ${{ secrets.DOCKER_USERNAME }} -p ${{ secrets.DOCKER_PASSWORD }} + sudo docker push ${{ secrets.DOCKER_FRONT_IMG }} sudo docker push ${{ secrets.DOCKER_IMG }} - name: scp file