Skip to content

Commit

Permalink
[BE] cd: 도커 태그 분리 (#741)
Browse files Browse the repository at this point in the history
  • Loading branch information
donghoony authored Sep 26, 2024
1 parent fafc6f4 commit fc4503a
Show file tree
Hide file tree
Showing 2 changed files with 4 additions and 6 deletions.
5 changes: 2 additions & 3 deletions .github/workflows/backend-dev-cd.yml
Original file line number Diff line number Diff line change
Expand Up @@ -54,7 +54,7 @@ jobs:
context: ./backend
platforms: linux/amd64,linux/arm64
push: true
tags: ${{ secrets.DOCKERHUB_ID }}/review-me-app:latest
tags: ${{ secrets.DOCKERHUB_ID }}/review-me-app:develop

deploy:
name: Deploy via self-hosted runner
Expand All @@ -67,7 +67,6 @@ jobs:
with:
repository: ${{ secrets.PRIVATE_REPOSITORY_URL }}
token: ${{ secrets.PRIVATE_REPOSITORY_TOKEN }}
ref: develop

- name: Move application-related files to local
run: |
Expand All @@ -83,6 +82,6 @@ jobs:
- name: Pull from DockerHub
run: |
sudo docker-compose --env-file .env.dev down || true
sudo docker pull ${{ secrets.DOCKERHUB_ID }}/review-me-app
sudo docker pull ${{ secrets.DOCKERHUB_ID }}/review-me-app:develop
sudo docker-compose --env-file .env.dev up -d
working-directory: ${{ env.APPLICATION_DIRECTORY }}/app
5 changes: 2 additions & 3 deletions .github/workflows/backend-prod-cd.yml
Original file line number Diff line number Diff line change
Expand Up @@ -54,7 +54,7 @@ jobs:
context: ./backend
platforms: linux/amd64,linux/arm64
push: true
tags: ${{ secrets.DOCKERHUB_ID }}/review-me-app:latest
tags: ${{ secrets.DOCKERHUB_ID }}/review-me-app:release

deploy:
name: Deploy via self-hosted runner
Expand All @@ -70,7 +70,6 @@ jobs:
with:
repository: ${{ secrets.PRIVATE_REPOSITORY_URL }}
token: ${{ secrets.PRIVATE_REPOSITORY_TOKEN }}
ref: develop

- name: Move application-related files to local
run: |
Expand All @@ -86,6 +85,6 @@ jobs:
- name: Pull from DockerHub
run: |
sudo docker-compose --env-file .env.prod down || true
sudo docker pull ${{ secrets.DOCKERHUB_ID }}/review-me-app
sudo docker pull ${{ secrets.DOCKERHUB_ID }}/review-me-app:release
sudo docker-compose --env-file .env.prod up -d
working-directory: ${{ env.APPLICATION_DIRECTORY }}/app

0 comments on commit fc4503a

Please sign in to comment.