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