Skip to content

Commit e6e3f95

Browse files
committed
Optimize registry img
1 parent 74ae8a6 commit e6e3f95

File tree

2 files changed

+5
-5
lines changed

2 files changed

+5
-5
lines changed

.github/workflows/branch.yml

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -44,7 +44,7 @@ jobs:
4444
with:
4545
context: .
4646
push: true
47-
tags: ${{ secrets.DOCKER_REGISTRY }}/rmmgain:${{ github.ref_name }}
47+
tags: ${{ secrets.DOCKER_REGISTRY }}/rmmgain:${{ github.ref_name }}-frontend
4848
build-args: |
4949
NEXT_PUBLIC_BACKEND_URL=${{ secrets.NEXT_PUBLIC_BACKEND_URL }}
5050
NEXT_PUBLIC_FRONTEND_URL=${{ secrets.NEXT_PUBLIC_FRONTEND_URL }}
@@ -58,7 +58,7 @@ jobs:
5858
context: .
5959
file: ./backend/Dockerfile
6060
push: true
61-
tags: ${{ secrets.DOCKER_REGISTRY }}/rmmgain-backend:${{ github.ref_name }}
61+
tags: ${{ secrets.DOCKER_REGISTRY }}/rmmgain:${{ github.ref_name }}-backend
6262

6363
- name: Configure SSH
6464
run: |

docker-compose-branch.yml

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -1,7 +1,7 @@
11
services:
22
frontend:
3-
image: ${DOCKER_REGISTRY}/rmmgain:${DOCKER_BRANCH}
4-
container_name: ${DOCKER_BRANCH}-rmmgain
3+
image: ${DOCKER_REGISTRY}/rmmgain:${DOCKER_BRANCH}-frontend
4+
container_name: ${DOCKER_BRANCH}-rmmgain-frontend
55
environment:
66
- NODE_ENV=production
77
- NEXT_PUBLIC_BACKEND_URL=http://backend:5000
@@ -20,7 +20,7 @@ services:
2020
restart: always
2121

2222
backend:
23-
image: ${DOCKER_REGISTRY}/rmmgain-backend:${DOCKER_BRANCH}
23+
image: ${DOCKER_REGISTRY}/rmmgain:${DOCKER_BRANCH}-backend
2424
container_name: ${DOCKER_BRANCH}-rmmgain-backend
2525
environment:
2626
- NODE_ENV=production

0 commit comments

Comments
 (0)