update registry in deploy.yml
This commit is contained in:
parent
3757303e60
commit
d868c57cfd
@ -5,7 +5,7 @@ on:
|
|||||||
branches: [ "main" ]
|
branches: [ "main" ]
|
||||||
|
|
||||||
env:
|
env:
|
||||||
REGISTRY: git.nicosaya.com
|
REGISTRY: git.nicosaya.com/nalalangan/costco-grocery-list
|
||||||
|
|
||||||
jobs:
|
jobs:
|
||||||
build:
|
build:
|
||||||
@ -45,14 +45,14 @@ jobs:
|
|||||||
- name: Build Backend Image
|
- name: Build Backend Image
|
||||||
run: |
|
run: |
|
||||||
docker build \
|
docker build \
|
||||||
-t $REGISTRY/costco-grocery-list-backend:${{ github.sha }} \
|
-t $REGISTRY/backend:${{ github.sha }} \
|
||||||
-t $REGISTRY/costco-grocery-list-backend:latest \
|
-t $REGISTRY/backend:latest \
|
||||||
-f backend/Dockerfile backend/
|
-f backend/Dockerfile backend/
|
||||||
|
|
||||||
- name: Push Backend Image
|
- name: Push Backend Image
|
||||||
run: |
|
run: |
|
||||||
docker push $REGISTRY/costco-grocery-list-backend:${{ github.sha }}
|
docker push $REGISTRY/backend:${{ github.sha }}
|
||||||
docker push $REGISTRY/costco-grocery-list-backend:latest
|
docker push $REGISTRY/backend:latest
|
||||||
|
|
||||||
# -------------------------
|
# -------------------------
|
||||||
# 🔹 Build Frontend Image
|
# 🔹 Build Frontend Image
|
||||||
@ -60,14 +60,14 @@ jobs:
|
|||||||
- name: Build Frontend Image
|
- name: Build Frontend Image
|
||||||
run: |
|
run: |
|
||||||
docker build \
|
docker build \
|
||||||
-t $REGISTRY/costco-grocery-list-frontend:${{ github.sha }} \
|
-t $REGISTRY/frontend:${{ github.sha }} \
|
||||||
-t $REGISTRY/costco-grocery-list-frontend:latest \
|
-t $REGISTRY/frontend:latest \
|
||||||
-f frontend/Dockerfile frontend/
|
-f frontend/Dockerfile frontend/
|
||||||
|
|
||||||
- name: Push Frontend Image
|
- name: Push Frontend Image
|
||||||
run: |
|
run: |
|
||||||
docker push $REGISTRY/costco-grocery-list-frontend:${{ github.sha }}
|
docker push $REGISTRY/frontend:${{ github.sha }}
|
||||||
docker push $REGISTRY/costco-grocery-list-frontend:latest
|
docker push $REGISTRY/frontend:latest
|
||||||
|
|
||||||
deploy:
|
deploy:
|
||||||
needs: build
|
needs: build
|
||||||
|
|||||||
Loading…
Reference in New Issue
Block a user