Skip to content
GitLab
Explore
Sign in
Primary navigation
Search or go to…
Project
VILLASnode
Manage
Activity
Members
Code
Repository
Branches
Commits
Tags
Repository graph
Compare revisions
Locked files
Build
Pipelines
Jobs
Pipeline schedules
Artifacts
Deploy
Container registry
Model registry
Analyze
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
Show more breadcrumbs
ACS
Public
VILLASframework
VILLASnode
Commits
d4d3c27a
Commit
d4d3c27a
authored
5 years ago
by
Steffen Vogel
Browse files
Options
Downloads
Patches
Plain Diff
ci: fix deployment
parent
253ef42e
No related branches found
No related tags found
No related merge requests found
Pipeline
#913626
canceled
2 years ago
Stage: prepare
Stage: build
Stage: test
Stage: packaging
Stage: deploy
Changes
1
Pipelines
1
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
.gitlab-ci.yml
+24
-12
24 additions, 12 deletions
.gitlab-ci.yml
with
24 additions
and
12 deletions
.gitlab-ci.yml
+
24
−
12
View file @
d4d3c27a
...
...
@@ -9,7 +9,7 @@ variables:
DOCKER_IMAGE
:
registry.git.rwth-aachen.de/acs/public/villas/node
DOCKER_IMAGE_DEV
:
registry.git.rwth-aachen.de/acs/public/villas/node/dev
MAKE_OPTS
:
-j32
RELEASEVER
:
29
RELEASEVER
:
'
29
'
stages
:
-
prepare
...
...
@@ -221,28 +221,37 @@ packaging:rpm:
deploy:web
:
stage
:
deploy
image
:
name
:
rclone/rclone:1.50
entrypoint
:
[
"
"
]
before_script
:
-
rclone config create fein webdav url ${DEPLOY_PATH} vendor other user ${DEPLOY_USER} pass ${DEPLOY_PASS}
script
:
-
ssh ${DEPLOY_USER}@${DEPLOY_HOST} mkdir -p ${DEPLOY_PATH}/{coverage,doc}/${CI_BUILD_REF_NAME}/
-
rsync ${RSYNC_OPTS} build/doc/html/ ${DEPLOY_USER}@${DEPLOY_HOST}:${DEPLOY_PATH}/doc/$CI_BUILD_REF_NAME/
-
rsync ${RSYNC_OPTS} web/ ${DEPLOY_USER}@${DEPLOY_HOST}:${DEPLOY_PATH}/
-
rclone copy build/doc/html fein:villas/doc-dev/${CI_BUILD_REF_NAME}
dependencies
:
-
build:docs
only
:
-
tags
# Only on version tags
-
"
/^v
\\
d+(
\\
.
\\
d+)+$/"
tags
:
-
villas-deploy
-
docker
.deploy:packages
:
&deploy_packages
stage
:
deploy
image
:
name
:
rclone/rclone:1.50
entrypoint
:
[
"
"
]
before_script
:
-
apk add curl
-
rclone config create fein webdav url ${DEPLOY_PATH} vendor other user ${DEPLOY_USER} pass ${DEPLOY_PASS}
script
:
-
ssh ${DEPLOY_USER}@${DEPLOY_HOST} mkdir -p $${DEPLOY_PATH_PACKAGES}/{fedora/x86_64,dist}
-
rsync ${RSYNC_OPTS} build/*.tar.gz ${DEPLOY_USER}@${DEPLOY_HOST}:${DEPLOY_PATH_PACKAGES}/dist/
-
rsync ${RSYNC_OPTS} build/*.rpm ${DEPLOY_USER}@${DEPLOY_HOST}:${DEPLOY_PATH_PACKAGES}/fedora/${RELEASEVER}/x86_64
-
ssh ${DEPLOY_USER}@${DEPLOY_HOST} createrepo ${DEPLOY_PATH_PACKAGES}/fedora/${RELEASEVER}/x86_64
-
rclone copy --max-depth 1 --include '*.tar.gz' build fein:packages/dist
-
rclone copy --max-depth 1 --include '*.rpm' build fein:packages/fedora/${RELEASEVER}/x86_64
-
curl -L --user ${DEPLOY_USER}:${DEPLOY_PASS} ${DEPLOY_PATH}/hooks/createrepo
dependencies
:
-
packaging:rpm
tags
:
-
villas-deploy
-
docker
deploy:packages:manual
:
<<
:
*deploy_packages
...
...
@@ -257,7 +266,7 @@ deploy:packages:tags:
deploy:docker
:
stage
:
deploy
before_script
:
-
docker login -u $CI_REGISTRY_USER -p $CI_REGISTRY_PASSWORD $CI_REGISTRY
-
docker login -u $
{
CI_REGISTRY_USER
}
-p $
{
CI_REGISTRY_PASSWORD
}
$
{
CI_REGISTRY
}
script
:
-
docker push ${DOCKER_IMAGE}:${DOCKER_TAG}
-
docker push registry.git.rwth-aachen.de/acs/public/villas/node/dev:${DOCKER_TAG}
...
...
@@ -269,3 +278,6 @@ deploy:docker:
tags
:
-
shell
-
linux
only
:
# Only on version tags
-
"
/^v
\\
d+(
\\
.
\\
d+)+$/"
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