Merge azure_deploy.sh into caprover_deploy.sh
This commit is contained in:
parent
8eb87327df
commit
b967147ff5
|
|
@ -1,8 +0,0 @@
|
|||
#!/bin/bash
|
||||
|
||||
npm install
|
||||
npm run build
|
||||
|
||||
python server/manage.py collectstatic --noinput
|
||||
docker build --platform linux/amd64 -f compose/django/Dockerfile -t iterativ/vbv-lernwelt-django:azure .
|
||||
docker image push iterativ/vbv-lernwelt-django:azure
|
||||
|
|
@ -129,11 +129,17 @@ pipelines:
|
|||
name: prepare prod deployment
|
||||
script:
|
||||
- echo "Release ready!"
|
||||
- step:
|
||||
<<: *deploy
|
||||
name: deploy prod
|
||||
deployment: prod
|
||||
trigger: manual
|
||||
- parallel:
|
||||
- step:
|
||||
<<: *deploy
|
||||
name: deploy prod
|
||||
deployment: prod
|
||||
trigger: manual
|
||||
- step:
|
||||
<<: *deploy
|
||||
name: deploy prod-azure
|
||||
deployment: prod-azure
|
||||
trigger: manual
|
||||
custom:
|
||||
deploy-stage:
|
||||
- step:
|
||||
|
|
|
|||
|
|
@ -53,7 +53,13 @@ VERSION_TAG="${REPO}:$VERSION"
|
|||
docker build --platform=linux/amd64 -f compose/django/Dockerfile -t "$REPO" -t "$LATEST" -t "$VERSION_TAG" --build-arg VERSION="$VERSION" --build-arg BUILD_TIMESTAMP="$BUILD_TIMESTAMP" --build-arg GIT_COMMIT="$(git log -1 --format=%h)" .
|
||||
docker push "$VERSION_TAG"
|
||||
|
||||
# caprover specific stuff
|
||||
if [[ "$APP_NAME" == "vbv-azure" ]]; then
|
||||
# build and push azure docker container
|
||||
docker build --platform linux/amd64 -f compose/django/Dockerfile -t iterativ/vbv-lernwelt-django:azure .
|
||||
docker image push iterativ/vbv-lernwelt-django:azure
|
||||
fi
|
||||
|
||||
# caprover specific deployment
|
||||
APP_URL="$APP_NAME.control.iterativ.ch"
|
||||
|
||||
echo "Checking if $APP_URL is available..."
|
||||
|
|
|
|||
Loading…
Reference in New Issue