This commit is contained in:
parent
571231b164
commit
09933e1a69
@ -6,7 +6,7 @@ on:
|
||||
tags: ["v*"]
|
||||
|
||||
env:
|
||||
REGISTRY: gitea.tenhal.sa
|
||||
REGISTRY: 10.10.1.132:3000
|
||||
IMAGE_NAME: marwan/hh
|
||||
|
||||
jobs:
|
||||
|
||||
@ -6,7 +6,7 @@ set -e
|
||||
# ./build-and-push.sh staging
|
||||
# ./build-and-push.sh v1.0.0
|
||||
|
||||
REGISTRY="gitea.tenhal.sa/marwan/hh"
|
||||
REGISTRY="10.10.1.132:3000/marwan/hh"
|
||||
TAG=${1:-staging}
|
||||
|
||||
echo "========================================"
|
||||
@ -18,7 +18,7 @@ echo ""
|
||||
echo "NOTE: CI normally handles this. Only use if CI is unavailable."
|
||||
echo ""
|
||||
|
||||
docker login gitea.tenhal.sa
|
||||
docker login 10.10.1.132:3000
|
||||
|
||||
echo ""
|
||||
echo "[1/3] Building image..."
|
||||
|
||||
@ -3,7 +3,7 @@ set -e
|
||||
|
||||
VERSION=${1:?Usage: ./deploy.prod.sh <version>}
|
||||
|
||||
IMAGE="gitea.tenhal.sa/marwan/hh:${VERSION}"
|
||||
IMAGE="10.10.1.132:3000/marwan/hh:${VERSION}"
|
||||
|
||||
echo "========================================"
|
||||
echo " PX360 Production Deploy"
|
||||
|
||||
@ -2,7 +2,7 @@
|
||||
set -e
|
||||
|
||||
VERSION=${1:-staging}
|
||||
IMAGE="gitea.tenhal.sa/marwan/hh:${VERSION}"
|
||||
IMAGE="10.10.1.132:3000/marwan/hh:${VERSION}"
|
||||
|
||||
echo "========================================"
|
||||
echo " PX360 Staging Deploy"
|
||||
|
||||
@ -24,7 +24,7 @@ services:
|
||||
max-file: "3"
|
||||
|
||||
web:
|
||||
image: ${PX360_IMAGE:-gitea.tenhal.sa/marwan/hh:latest}
|
||||
image: ${PX360_IMAGE:-10.10.1.132:3000/marwan/hh:latest}
|
||||
container_name: px360_web
|
||||
restart: unless-stopped
|
||||
volumes:
|
||||
@ -50,7 +50,7 @@ services:
|
||||
max-file: "3"
|
||||
|
||||
celery:
|
||||
image: ${PX360_IMAGE:-gitea.tenhal.sa/marwan/hh:latest}
|
||||
image: ${PX360_IMAGE:-10.10.1.132:3000/marwan/hh:latest}
|
||||
container_name: px360_celery
|
||||
restart: unless-stopped
|
||||
command: celery -A config worker -l info --concurrency=4
|
||||
@ -68,7 +68,7 @@ services:
|
||||
max-file: "3"
|
||||
|
||||
celery-beat:
|
||||
image: ${PX360_IMAGE:-gitea.tenhal.sa/marwan/hh:latest}
|
||||
image: ${PX360_IMAGE:-10.10.1.132:3000/marwan/hh:latest}
|
||||
container_name: px360_celery_beat
|
||||
restart: unless-stopped
|
||||
command: celery -A config beat -l info --scheduler django_celery_beat.schedulers:DatabaseScheduler
|
||||
|
||||
@ -24,7 +24,7 @@ services:
|
||||
max-file: "3"
|
||||
|
||||
web:
|
||||
image: ${PX360_IMAGE:-gitea.tenhal.sa/marwan/hh:staging}
|
||||
image: ${PX360_IMAGE:-10.10.1.132:3000/marwan/hh:staging}
|
||||
container_name: px360_web
|
||||
restart: unless-stopped
|
||||
volumes:
|
||||
@ -56,7 +56,7 @@ services:
|
||||
max-file: "3"
|
||||
|
||||
celery:
|
||||
image: ${PX360_IMAGE:-gitea.tenhal.sa/marwan/hh:staging}
|
||||
image: ${PX360_IMAGE:-10.10.1.132:3000/marwan/hh:staging}
|
||||
container_name: px360_celery
|
||||
restart: unless-stopped
|
||||
command: celery -A config worker -l info --concurrency=2
|
||||
@ -78,7 +78,7 @@ services:
|
||||
max-file: "3"
|
||||
|
||||
celery-beat:
|
||||
image: ${PX360_IMAGE:-gitea.tenhal.sa/marwan/hh:staging}
|
||||
image: ${PX360_IMAGE:-10.10.1.132:3000/marwan/hh:staging}
|
||||
container_name: px360_celery_beat
|
||||
restart: unless-stopped
|
||||
command: celery -A config beat -l info --scheduler django_celery_beat.schedulers:DatabaseScheduler
|
||||
|
||||
Loading…
x
Reference in New Issue
Block a user