Fix registry paths to use repo name (doomtube/beeta)
Some checks failed
Build and Push / build-all (push) Failing after 7s
Some checks failed
Build and Push / build-all (push) Failing after 7s
This commit is contained in:
parent
a1c7d49e00
commit
07a737c799
3 changed files with 20 additions and 22 deletions
|
|
@ -17,7 +17,6 @@ on:
|
||||||
|
|
||||||
env:
|
env:
|
||||||
REGISTRY: qbit.realms.pub
|
REGISTRY: qbit.realms.pub
|
||||||
IMAGE_PREFIX: realms
|
|
||||||
|
|
||||||
jobs:
|
jobs:
|
||||||
build-all:
|
build-all:
|
||||||
|
|
@ -45,15 +44,15 @@ jobs:
|
||||||
run: |
|
run: |
|
||||||
echo "=== Building Backend ==="
|
echo "=== Building Backend ==="
|
||||||
docker build \
|
docker build \
|
||||||
-t ${{ env.REGISTRY }}/${{ env.IMAGE_PREFIX }}/backend:${{ github.sha }} \
|
-t ${{ env.REGISTRY }}/${{ github.repository }}/backend:${{ github.sha }} \
|
||||||
-t ${{ env.REGISTRY }}/${{ env.IMAGE_PREFIX }}/backend:latest \
|
-t ${{ env.REGISTRY }}/${{ github.repository }}/backend:latest \
|
||||||
./backend
|
./backend
|
||||||
|
|
||||||
- name: Push Backend Image
|
- name: Push Backend Image
|
||||||
if: github.event_name == 'push'
|
if: github.event_name == 'push'
|
||||||
run: |
|
run: |
|
||||||
docker push ${{ env.REGISTRY }}/${{ env.IMAGE_PREFIX }}/backend:${{ github.sha }}
|
docker push ${{ env.REGISTRY }}/${{ github.repository }}/backend:${{ github.sha }}
|
||||||
docker push ${{ env.REGISTRY }}/${{ env.IMAGE_PREFIX }}/backend:latest
|
docker push ${{ env.REGISTRY }}/${{ github.repository }}/backend:latest
|
||||||
|
|
||||||
# =========================================================================
|
# =========================================================================
|
||||||
# Build Frontend (SvelteKit)
|
# Build Frontend (SvelteKit)
|
||||||
|
|
@ -62,15 +61,15 @@ jobs:
|
||||||
run: |
|
run: |
|
||||||
echo "=== Building Frontend ==="
|
echo "=== Building Frontend ==="
|
||||||
docker build \
|
docker build \
|
||||||
-t ${{ env.REGISTRY }}/${{ env.IMAGE_PREFIX }}/frontend:${{ github.sha }} \
|
-t ${{ env.REGISTRY }}/${{ github.repository }}/frontend:${{ github.sha }} \
|
||||||
-t ${{ env.REGISTRY }}/${{ env.IMAGE_PREFIX }}/frontend:latest \
|
-t ${{ env.REGISTRY }}/${{ github.repository }}/frontend:latest \
|
||||||
./frontend
|
./frontend
|
||||||
|
|
||||||
- name: Push Frontend Image
|
- name: Push Frontend Image
|
||||||
if: github.event_name == 'push'
|
if: github.event_name == 'push'
|
||||||
run: |
|
run: |
|
||||||
docker push ${{ env.REGISTRY }}/${{ env.IMAGE_PREFIX }}/frontend:${{ github.sha }}
|
docker push ${{ env.REGISTRY }}/${{ github.repository }}/frontend:${{ github.sha }}
|
||||||
docker push ${{ env.REGISTRY }}/${{ env.IMAGE_PREFIX }}/frontend:latest
|
docker push ${{ env.REGISTRY }}/${{ github.repository }}/frontend:latest
|
||||||
|
|
||||||
# =========================================================================
|
# =========================================================================
|
||||||
# Build Chat Service
|
# Build Chat Service
|
||||||
|
|
@ -79,15 +78,15 @@ jobs:
|
||||||
run: |
|
run: |
|
||||||
echo "=== Building Chat Service ==="
|
echo "=== Building Chat Service ==="
|
||||||
docker build \
|
docker build \
|
||||||
-t ${{ env.REGISTRY }}/${{ env.IMAGE_PREFIX }}/chat-service:${{ github.sha }} \
|
-t ${{ env.REGISTRY }}/${{ github.repository }}/chat-service:${{ github.sha }} \
|
||||||
-t ${{ env.REGISTRY }}/${{ env.IMAGE_PREFIX }}/chat-service:latest \
|
-t ${{ env.REGISTRY }}/${{ github.repository }}/chat-service:latest \
|
||||||
./chat-service
|
./chat-service
|
||||||
|
|
||||||
- name: Push Chat Service Image
|
- name: Push Chat Service Image
|
||||||
if: github.event_name == 'push'
|
if: github.event_name == 'push'
|
||||||
run: |
|
run: |
|
||||||
docker push ${{ env.REGISTRY }}/${{ env.IMAGE_PREFIX }}/chat-service:${{ github.sha }}
|
docker push ${{ env.REGISTRY }}/${{ github.repository }}/chat-service:${{ github.sha }}
|
||||||
docker push ${{ env.REGISTRY }}/${{ env.IMAGE_PREFIX }}/chat-service:latest
|
docker push ${{ env.REGISTRY }}/${{ github.repository }}/chat-service:latest
|
||||||
|
|
||||||
# =========================================================================
|
# =========================================================================
|
||||||
# Build OpenResty (Nginx + Lua)
|
# Build OpenResty (Nginx + Lua)
|
||||||
|
|
@ -96,12 +95,12 @@ jobs:
|
||||||
run: |
|
run: |
|
||||||
echo "=== Building OpenResty ==="
|
echo "=== Building OpenResty ==="
|
||||||
docker build \
|
docker build \
|
||||||
-t ${{ env.REGISTRY }}/${{ env.IMAGE_PREFIX }}/openresty:${{ github.sha }} \
|
-t ${{ env.REGISTRY }}/${{ github.repository }}/openresty:${{ github.sha }} \
|
||||||
-t ${{ env.REGISTRY }}/${{ env.IMAGE_PREFIX }}/openresty:latest \
|
-t ${{ env.REGISTRY }}/${{ github.repository }}/openresty:latest \
|
||||||
./openresty
|
./openresty
|
||||||
|
|
||||||
- name: Push OpenResty Image
|
- name: Push OpenResty Image
|
||||||
if: github.event_name == 'push'
|
if: github.event_name == 'push'
|
||||||
run: |
|
run: |
|
||||||
docker push ${{ env.REGISTRY }}/${{ env.IMAGE_PREFIX }}/openresty:${{ github.sha }}
|
docker push ${{ env.REGISTRY }}/${{ github.repository }}/openresty:${{ github.sha }}
|
||||||
docker push ${{ env.REGISTRY }}/${{ env.IMAGE_PREFIX }}/openresty:latest
|
docker push ${{ env.REGISTRY }}/${{ github.repository }}/openresty:latest
|
||||||
|
|
|
||||||
|
|
@ -17,7 +17,6 @@ on:
|
||||||
|
|
||||||
env:
|
env:
|
||||||
REGISTRY: qbit.realms.pub
|
REGISTRY: qbit.realms.pub
|
||||||
IMAGE_PREFIX: realms
|
|
||||||
|
|
||||||
jobs:
|
jobs:
|
||||||
deploy:
|
deploy:
|
||||||
|
|
|
||||||
|
|
@ -59,7 +59,7 @@ services:
|
||||||
- frontend
|
- frontend
|
||||||
|
|
||||||
drogon-backend:
|
drogon-backend:
|
||||||
image: qbit.realms.pub/realms/backend:latest
|
image: qbit.realms.pub/doomtube/beeta/backend:latest
|
||||||
restart: unless-stopped
|
restart: unless-stopped
|
||||||
depends_on:
|
depends_on:
|
||||||
postgres:
|
postgres:
|
||||||
|
|
@ -91,7 +91,7 @@ services:
|
||||||
- backend
|
- backend
|
||||||
|
|
||||||
chat-service:
|
chat-service:
|
||||||
image: qbit.realms.pub/realms/chat-service:latest
|
image: qbit.realms.pub/doomtube/beeta/chat-service:latest
|
||||||
restart: unless-stopped
|
restart: unless-stopped
|
||||||
depends_on:
|
depends_on:
|
||||||
redis:
|
redis:
|
||||||
|
|
@ -154,7 +154,7 @@ services:
|
||||||
- frontend
|
- frontend
|
||||||
|
|
||||||
openresty:
|
openresty:
|
||||||
image: qbit.realms.pub/realms/openresty:latest
|
image: qbit.realms.pub/doomtube/beeta/openresty:latest
|
||||||
restart: unless-stopped
|
restart: unless-stopped
|
||||||
ports:
|
ports:
|
||||||
- "80:80"
|
- "80:80"
|
||||||
|
|
@ -189,7 +189,7 @@ services:
|
||||||
- backend
|
- backend
|
||||||
|
|
||||||
sveltekit:
|
sveltekit:
|
||||||
image: qbit.realms.pub/realms/frontend:latest
|
image: qbit.realms.pub/doomtube/beeta/frontend:latest
|
||||||
restart: unless-stopped
|
restart: unless-stopped
|
||||||
depends_on:
|
depends_on:
|
||||||
openresty:
|
openresty:
|
||||||
|
|
|
||||||
Loading…
Add table
Add a link
Reference in a new issue