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