Commit fd8d5350 authored by David Trattnig's avatar David Trattnig
Browse files

Add deploy stage

parent 8f102b1d
Pipeline #1890 failed
image: node:12.22.11-buster
stages:
- test
- build
- deploy
- release
.install_requirements: &install_requirements
......@@ -19,12 +20,15 @@ stages:
- Dockerfile
do_build:
stage: test
stage: build
before_script:
- *install_requirements
script:
- echo $NODE_ENV
- npm run build
artifacts:
paths:
- public/
docker-push:
# Use the official docker image.
......@@ -56,6 +60,17 @@ docker-push:
exists:
- Dockerfile
deploy-job: # This job runs in the deploy stage.
stage: deploy # It only runs when *both* jobs in the test stage complete successfully.
before_script:
- apt-get update -qq && apt-get install -y -qq lftp
script:
- echo "Deploying AURA Player Demo..."
- lftp -c "set ftp:ssl-allow no; open -u $FTP_AURA_RADIO_USER,$FTP_AURA_RADIO_PWD $FTP_AURA_RADIO_HOST; mirror -Rnev ./public/ ./player.aura.radio --ignore-time --parallel=10 --exclude-glob .git* --exclude .git/"
- echo "AURA Player Demo successfully deployed."
dependencies:
- build-job
release_job:
stage: release
needs:
......
Supports Markdown
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