Skip to content
GitLab
Explore
Sign in
Primary navigation
Search or go to…
Project
frag.jetzt SWTP 2022
Manage
Activity
Members
Labels
Plan
Issues
0
Issue boards
Milestones
Wiki
Code
Merge requests
0
Repository
Branches
Commits
Tags
Repository graph
Compare revisions
Snippets
Build
Pipelines
Jobs
Pipeline schedules
Artifacts
Deploy
Releases
Package Registry
Container Registry
Operate
Environments
Terraform modules
Monitor
Incidents
Analyze
Value stream analytics
Contributor analytics
CI/CD analytics
Repository analytics
Help
Help
Support
GitLab documentation
Community forum
Contribute to GitLab
Provide feedback
Keyboard shortcuts
?
Privacy
Imprint
Contact
Snippets
Groups
Projects
This is an archived project. Repository and other project resources are read-only.
Show more breadcrumbs
Marc Tröll
frag.jetzt SWTP 2022
Commits
3aa86d09
Commit
3aa86d09
authored
3 years ago
by
Nils Mittler
Browse files
Options
Downloads
Patches
Plain Diff
add staging deployment job
parent
5dadbcfe
Branches
Branches containing commit
Tags
Tags containing commit
No related merge requests found
Changes
1
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
.gitlab-ci.yml
+18
-2
18 additions, 2 deletions
.gitlab-ci.yml
with
18 additions
and
2 deletions
.gitlab-ci.yml
+
18
−
2
View file @
3aa86d09
...
...
@@ -38,7 +38,7 @@ unit_tests:
sonar
:
stage
:
codestyle
only
:
-
master
-
staging
tags
:
-
sonar-cli
allow_failure
:
true
...
...
@@ -62,7 +62,23 @@ ngbuild:
paths
:
-
"
$BUILD_DIR"
deploy
:
deploy_staging
:
stage
:
deploy
only
:
-
staging
tags
:
-
ssh
dependencies
:
-
tslint
-
ngbuild
script
:
-
eval $(ssh-agent -s)
-
mkdir ~/.ssh
-
ssh-keyscan "$STAGING_SERVER_URL" >> ~/.ssh/known_hosts
-
ssh-add <(echo "$SSH_PRIVATE_KEY")
-
scp -r "$BUILD_DIR"* "$STAGING_SSH_URL"
deploy_production
:
stage
:
deploy
only
:
-
master
...
...
This diff is collapsed.
Click to expand it.
Preview
0%
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