Skip to content

Commit

Permalink
chore: cicd front docker image
Browse files Browse the repository at this point in the history
  • Loading branch information
Jeongh00 committed Nov 1, 2024
1 parent baaee76 commit bb6ca95
Showing 1 changed file with 5 additions and 1 deletion.
6 changes: 5 additions & 1 deletion .github/workflows/cd.yml
Original file line number Diff line number Diff line change
Expand Up @@ -2,7 +2,7 @@ name: Backend CD # actions 이름

on:
push:
branches: [ develop ]
branches: [ cicd/#48 ]

jobs:
deploy:
Expand Down Expand Up @@ -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
Expand Down

0 comments on commit bb6ca95

Please sign in to comment.