Skip to content
GitLab
Explore
Sign in
Primary navigation
Search or go to…
Project
Toolkit
Manage
Activity
Members
Labels
Plan
Issues
Issue boards
Milestones
Wiki
Code
Merge requests
Repository
Branches
Commits
Tags
Repository graph
Compare revisions
Snippets
Build
Pipelines
Jobs
Pipeline schedules
Artifacts
Deploy
Releases
Package Registry
Container Registry
Model registry
Operate
Environments
Terraform modules
Monitor
Incidents
Analyze
Value stream analytics
Contributor analytics
CI/CD analytics
Repository analytics
Model experiments
Help
Help
Support
GitLab documentation
Compare GitLab plans
Community forum
Contribute to GitLab
Provide feedback
Terms and privacy
Keyboard shortcuts
?
Snippets
Groups
Projects
This is an archived project. Repository and other project resources are read-only.
Show more breadcrumbs
digital blueprint
Web Component Framework
Toolkit
Commits
f4782e68
Commit
f4782e68
authored
2 years ago
by
Reiter, Christoph
Browse files
Options
Downloads
Patches
Plain Diff
Port deployment to the external repo
parent
4b9be763
No related branches found
No related tags found
No related merge requests found
Checking pipeline status
Changes
1
Pipelines
1
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
.gitlab-ci.yml
+9
-46
9 additions, 46 deletions
.gitlab-ci.yml
with
9 additions
and
46 deletions
.gitlab-ci.yml
+
9
−
46
View file @
f4782e68
...
...
@@ -11,7 +11,6 @@ before_script:
stages
:
-
test
-
deploy
-
e2e
test
:
stage
:
test
...
...
@@ -40,56 +39,20 @@ publish:
-
yarn run build
-
yarn run publish
.deploy_defaults
:
&deploy_defaults
deploy
:
stage
:
deploy
except
:
-
schedules
stage
:
deploy
script
:
# Add ssh key
-
mkdir -p ~/.ssh
-
echo "${DEPLOY_KEY}" | tr -d '\r' > ~/.ssh/id_rsa
-
chmod 700 ~/.ssh && chmod 600 ~/.ssh/id_rsa
-
ssh-keyscan -t rsa "${DEPLOY_HOST}" >> ~/.ssh/known_hosts
# Deploy
-
cd .gitlab-ci
-
export DO_NOT_TRACK=1
-
composer install
-
composer exec -- deployer.phar deploy "stage=${CI_ENVIRONMENT_NAME}"
-
echo "Deployed to ${CI_ENVIRONMENT_URL}"
# Simple health check
-
curl --max-time 10 --retry 3 --output /dev/null --silent --show-error --fail --location "${CI_ENVIRONMENT_URL}"
deploy_demo
:
only
:
refs
:
-
demo
environment
:
name
:
demo
url
:
https://dbp-demo.tugraz.at/apps/demo
variables
:
DEPLOY_HOST
:
vpu01-demo.tugraz.at
DEPLOY_KEY
:
"
$DEPLOY_SSH_KEY"
<<
:
*deploy_defaults
deploy_development
:
only
:
refs
:
-
master
environment
:
name
:
development
url
:
https://dbp-dev.tugraz.at/apps/demo
variables
:
DEPLOY_HOST
:
mw01-dev.tugraz.at
DEPLOY_KEY
:
"
$DEPLOY_SSH_KEY"
<<
:
*deploy_defaults
e2e_tests
:
only
:
refs
:
-
master
-
demo
inherit
:
variables
:
false
variables
:
E2E_PROJECT
:
toolkit-showcase
stage
:
e2e
UPSTREAM_PROJECT_PATH
:
${CI_PROJECT_PATH}
UPSTREAM_COMMIT_BRANCH
:
${CI_COMMIT_BRANCH}
UPSTREAM_COMMIT_SHA
:
${CI_COMMIT_SHA}
trigger
:
project
:
dbp/
e2e-tests
project
:
dbp/
deployer
strategy
:
depend
This diff is collapsed.
Click to expand it.
Preview
0%
Loading
Try again
or
attach a new file
.
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Save comment
Cancel
Please
register
or
sign in
to comment