Skip to content

Commit

Permalink
refactor: (두개의 이미지를 push) => 태그로 구분
Browse files Browse the repository at this point in the history
  • Loading branch information
dgjinsu committed Apr 5, 2024
1 parent ce72b2f commit fecad5a
Show file tree
Hide file tree
Showing 4 changed files with 10 additions and 10 deletions.
14 changes: 7 additions & 7 deletions .github/workflows/deploy.yml
Original file line number Diff line number Diff line change
Expand Up @@ -44,16 +44,16 @@ jobs:

# 무중단 배포 시 기존 이미지로 실행되는 것을 막기 위해 a, b로 나눔
- name: Build jikgong-a Docker Image
run: docker build -t ${{ secrets.DOCKERHUB_USERNAME }}/jikgong-a .
run: docker build -t ${{ secrets.DOCKERHUB_USERNAME }}/jikgong:latest .

- name: Push jikgong-a Docker Image
run: docker push ${{ secrets.DOCKERHUB_USERNAME }}/jikgong-a
run: docker push ${{ secrets.DOCKERHUB_USERNAME }}/jikgong:latest

- name: Build jikgong-b Docker Image
run: docker build -t ${{ secrets.DOCKERHUB_USERNAME }}/jikgong-b .

- name: Push jikgong-b Docker Image
run: docker push ${{ secrets.DOCKERHUB_USERNAME }}/jikgong-b
# - name: Build jikgong-b Docker Image
# run: docker build -t ${{ secrets.DOCKERHUB_USERNAME }}/jikgong-b .
#
# - name: Push jikgong-b Docker Image
# run: docker push ${{ secrets.DOCKERHUB_USERNAME }}/jikgong-b

cd-pipeline:
needs: ci-pipeline
Expand Down
2 changes: 1 addition & 1 deletion docker-compose.a.yml
Original file line number Diff line number Diff line change
Expand Up @@ -2,7 +2,7 @@ version: "3.8"
services:
jikgong-a:
container_name: jikgong-a
image: ${DOCKERHUB_USERNAME}/jikgong-a
image: ${DOCKERHUB_USERNAME}/jikgong:latest
volumes:
- ./logs:/logs
env_file:
Expand Down
2 changes: 1 addition & 1 deletion docker-compose.b.yml
Original file line number Diff line number Diff line change
Expand Up @@ -2,7 +2,7 @@ version: "3.8"
services:
jikgong-b:
container_name: jikgong-b
image: ${DOCKERHUB_USERNAME}/jikgong-b
image: ${DOCKERHUB_USERNAME}/jikgong:latest
volumes:
- ./logs:/logs
env_file:
Expand Down
2 changes: 1 addition & 1 deletion src/main/java/jikgong/global/config/SwaggerConfig.java
Original file line number Diff line number Diff line change
Expand Up @@ -14,7 +14,7 @@

@OpenAPIDefinition(
info = @Info(title = "jikgong API 명세서",
description = "기업 계정: 아래 1개 " +
description = "**기업 계정: 아래 1개 " +
"\neyJ0eXAiOiJKV1QiLCJhbGciOiJIUzI1NiJ9.eyJsb2dpbklkIjoiYWJjZGVmZzAiLCJleHAiOjE3MTU2OTY0NDh9.KdnJdTOzOsCD_AJi8SJOpmiRaO4mrAXVPswvCCzRMoI " +
"\n노동자 계정: 아래 4개 " +
"\neyJ0eXAiOiJKV1QiLCJhbGciOiJIUzI1NiJ9.eyJsb2dpbklkIjoiYWJjZGVmZzEiLCJleHAiOjE3MTU2OTY0NzJ9.EcdUqjdAYuT_n_dMBzecHIg-ZhXl1g-LEb7ZRZtK4VA " +
Expand Down

0 comments on commit fecad5a

Please sign in to comment.