Skip to content

Commit

Permalink
refactor(ci&cd): docker hub 푸시할 때 태그 추가 (#380)
Browse files Browse the repository at this point in the history
  • Loading branch information
mikekks authored Sep 17, 2024
1 parent 633c66c commit db2a004
Show file tree
Hide file tree
Showing 2 changed files with 8 additions and 8 deletions.
8 changes: 4 additions & 4 deletions .github/workflows/cd-dev.yml
Original file line number Diff line number Diff line change
Expand Up @@ -32,14 +32,14 @@ jobs:

- name: docker image 빌드 및 푸시 (Spring)
run: |
docker build --platform linux/amd64 -t makerscrew/main .
docker push makerscrew/main
docker build --platform linux/amd64 -t makerscrew/main:develop .
docker push makerscrew/main:develop
working-directory: ${{ env.working-directory-spring }}

- name: docker image 빌드 및 푸시 (nestjs)
run: |
docker build --platform linux/amd64 -t makerscrew/server .
docker push makerscrew/server
docker build --platform linux/amd64 -t makerscrew/server:develop .
docker push makerscrew/server:develop
working-directory: ${{ env.working-directory-nestjs }}

- name: 도커 컨테이너 실행
Expand Down
8 changes: 4 additions & 4 deletions .github/workflows/cd-prod.yml
Original file line number Diff line number Diff line change
Expand Up @@ -32,14 +32,14 @@ jobs:

- name: docker image 빌드 및 푸시 (Spring)
run: |
docker build --platform linux/amd64 -t makerscrew/main .
docker push makerscrew/main
docker build --platform linux/amd64 -t makerscrew/main:production .
docker push makerscrew/main:production
working-directory: ${{ env.working-directory-spring }}

- name: docker image 빌드 및 푸시 (nestjs)
run: |
docker build --platform linux/amd64 -t makerscrew/server .
docker push makerscrew/server
docker build --platform linux/amd64 -t makerscrew/server:production .
docker push makerscrew/server:production
working-directory: ${{ env.working-directory-nestjs }}

- name: 도커 컨테이너 실행
Expand Down

0 comments on commit db2a004

Please sign in to comment.