Commit e7c5ad7f authored by Michele Azzolari's avatar Michele Azzolari

CI: fix production path and enable manual job

parent d969f5f7
Pipeline #425 passed with stages
in 5 minutes and 3 seconds
......@@ -43,5 +43,6 @@ release-spa:
- npm run build
- apt-get update && apt-get install -y rsync
- ./release.sh prod
when: manual
only:
- tags
- master
......@@ -12,6 +12,6 @@ if [[ ! "${FCUB_HOST_PUB_KEY}" = "" ]]; then
fi
DEST_PATH=test.milanoscaloromana.it
if [[ "$1" = "prod" ]]; then
DEST_PATH=html
DEST_PATH=fcub.milanoscaloromana.it
fi
rsync -av --delete --exclude data build/ fcub@www.milanoscaloromana.it:/var/www/${DEST_PATH}/
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment