Skip to content
GitLab
Menu
Projects
Groups
Snippets
/
Help
Help
Support
Community forum
Keyboard shortcuts
?
Submit feedback
Contribute to GitLab
Sign in / Register
Toggle navigation
Menu
Open sidebar
AURA
player
Commits
fd8d5350
Commit
fd8d5350
authored
May 09, 2022
by
David Trattnig
Browse files
Add deploy stage
parent
8f102b1d
Pipeline
#1890
failed
Changes
1
Pipelines
1
Hide whitespace changes
Inline
Side-by-side
.gitlab-ci.yml
View file @
fd8d5350
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
:
...
...
Write
Preview
Supports
Markdown
0%
Try again
or
attach a new file
.
Attach a file
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Cancel
Please
register
or
sign in
to comment