Skip to content
GitLab
Explore
Sign in
Primary navigation
Search or go to…
Project
ProB Rodin Plugin
Manage
Activity
Members
Labels
Code
Merge requests
Repository
Branches
Commits
Tags
Repository graph
Compare revisions
Locked files
Build
Pipelines
Jobs
Pipeline schedules
Artifacts
Deploy
Releases
Model registry
Operate
Environments
Analyze
Model experiments
Help
Help
Support
GitLab documentation
Compare GitLab plans
GitLab community forum
Contribute to GitLab
Provide feedback
Keyboard shortcuts
?
Snippets
Groups
Projects
Show more breadcrumbs
general
stups
ProB Rodin Plugin
Commits
78c6f4c2
Commit
78c6f4c2
authored
2 years ago
by
dgelessus
Browse files
Options
Downloads
Patches
Plain Diff
Add automatic release deployment to .gitlab-ci.yml
parent
b49f201c
No related branches found
No related tags found
No related merge requests found
Changes
1
Show whitespace changes
Inline
Side-by-side
Showing
1 changed file
.gitlab-ci.yml
+14
-1
14 additions, 1 deletion
.gitlab-ci.yml
with
14 additions
and
1 deletion
.gitlab-ci.yml
+
14
−
1
View file @
78c6f4c2
...
...
@@ -22,7 +22,7 @@ build:
paths
:
-
de.prob.repository/target/repository
deploy
:
deploy:
nightly
:
stage
:
deploy
only
:
-
develop@general/stups/prob_rodin_plugin
...
...
@@ -34,3 +34,16 @@ deploy:
-
apk add lftp openssh-client
script
:
-
LFTP_PASSWORD="${DEPLOY_PASSWORD}" lftp -c "set cmd:fail-exit
true
; set sftp:auto-confirm
true
; open --user ${DEPLOY_USERNAME} --env-password sftp://${DEPLOY_HOST}/${DEPLOY_REMOTE_BASEDIR}/rodin/prob1/nightly/; mirror -vvv -R de.prob.repository/target/repository ."
deploy:release
:
stage
:
deploy
only
:
-
master@general/stups/prob_rodin_plugin
image
:
alpine:3
variables
:
GIT_STRATEGY
:
none
before_script
:
-
apk update
-
apk add lftp openssh-client
script
:
-
LFTP_PASSWORD="${DEPLOY_PASSWORD}" lftp -c "set cmd:fail-exit
true
; set sftp:auto-confirm
true
; open --user ${DEPLOY_USERNAME} --env-password sftp://${DEPLOY_HOST}/${DEPLOY_REMOTE_BASEDIR}/rodin/prob1/; mkdir release-next; mirror -vvv -R de.prob.repository/target/repository release-next; mv release release-prev; mv release-next release"
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