Skip to content
GitLab
Menu
Projects
Groups
Snippets
Help
Help
Support
Community forum
Keyboard shortcuts
?
Submit feedback
Sign in
Toggle navigation
Menu
Open sidebar
DARIAH-DE
Geo-Browser
Commits
32818fe0
Commit
32818fe0
authored
Nov 17, 2021
by
malzer
Browse files
Update gitlab-ci.yml to replace master with main
parent
52ade237
Changes
1
Hide whitespace changes
Inline
Side-by-side
.gitlab-ci.yml
View file @
32818fe0
...
...
@@ -25,11 +25,11 @@ build_dev_platin:
build_live_platin
:
only
:
-
ma
ster
-
ma
in
image
:
ruby:3.0
stage
:
build_platin
script
:
-
git clone -b ma
ster
--single-branch https://github.com/DARIAH-DE/PLATIN.git
-
git clone -b ma
in
--single-branch https://github.com/DARIAH-DE/PLATIN.git
-
apt-get update && apt-get -y install default-jre
-
cd PLATIN
-
rake all
...
...
@@ -41,7 +41,7 @@ build_docs:
only
:
-
tags
-
develop
-
ma
ster
-
ma
in
image
:
python:3
stage
:
build_docs
script
:
...
...
@@ -51,7 +51,7 @@ build_docs:
-
pwd . venv/bin/activate
-
pip install -r requirements.txt
-
beta="-BETA"
-
if test "$BRANCH_NAME" = 'ma
ster
'; then beta=""; fi
-
if test "$BRANCH_NAME" = 'ma
in
'; then beta=""; fi
-
RELEASE_DATE="$(date +'%Y/%m/%d')${beta}"
-
RELEASE_VERSION="$(date +'%Y')${beta}"
-
make clean html SPHINXOPTS="-D version=${BUILD_VERSION} -D release=${RELEASE_DATE}"
...
...
@@ -83,7 +83,7 @@ build_dev:
build_live
:
only
:
-
ma
ster
-
ma
in
image
:
node:15
stage
:
build_app
script
:
...
...
@@ -136,7 +136,7 @@ package_dev:
package_live
:
only
:
-
ma
ster
-
ma
in
image
:
ruby:3.0
stage
:
packaging
variables
:
...
...
@@ -189,25 +189,25 @@ deploy_dev:
-
if test "${response#*"error"}" != "$response"; then exit 1; else echo "Job completed.";fi
deploy_live
:
only
:
-
ma
ster
image
:
alpine:3.14
stage
:
deploy
variables
:
build_number
:
$PIPELINE_ID
full_version
:
'
${VERSION}-${build_number}'
DEB_NAME
:
'
dariahde-geobrowser_${full_version}.deb'
DEPLOY_DEB_COMMAND
:
'
curl
-u
ci:${APTLY_PASSWORD}
-X
PUT
-H
"Content-Type:
application/json"
--data
"{}"
${APTLY_URL}/publish/:./indy'
script
:
-
'
apk
add
--no-cache
bash'
-
'
apk
add
--no-cache
curl'
-
curl --version
-
export DEB_FILE="$(ls ./*.deb)"
-
curl -u ci:${APTLY_PASSWORD} -X POST --header "Content-Type:multipart/form-data" -F file=@${DEB_FILE} ${APTLY_URL}/files/${DEB_NAME}
-
curl -u ci:${APTLY_PASSWORD} -X POST ${APTLY_URL}/repos/indy-releases/file/${DEB_NAME}
-
echo $DEPLOY_DEB_COMMAND
-
response=$(eval "$DEPLOY_DEB_COMMAND")
-
echo $response
-
if test "${response#*"error"}" != "$response"; then exit 1; else echo "Job completed.";fi
#
deploy_live:
#
only:
#
- ma
in
#
image: alpine:3.14
#
stage:
#
deploy
#
variables:
#
build_number: $PIPELINE_ID
#
full_version: '${VERSION}-${build_number}'
#
DEB_NAME: 'dariahde-geobrowser_${full_version}.deb'
#
DEPLOY_DEB_COMMAND: 'curl -u ci:${APTLY_PASSWORD} -X PUT -H "Content-Type: application/json" --data "{}" ${APTLY_URL}/publish/:./indy'
#
script:
#
- 'apk add --no-cache bash'
#
- 'apk add --no-cache curl'
#
- curl --version
#
- export DEB_FILE="$(ls ./*.deb)"
#
- curl -u ci:${APTLY_PASSWORD} -X POST --header "Content-Type:multipart/form-data" -F file=@${DEB_FILE} ${APTLY_URL}/files/${DEB_NAME}
#
- curl -u ci:${APTLY_PASSWORD} -X POST ${APTLY_URL}/repos/indy-releases/file/${DEB_NAME}
#
- echo $DEPLOY_DEB_COMMAND
#
- response=$(eval "$DEPLOY_DEB_COMMAND")
#
- echo $response
#
- if test "${response#*"error"}" != "$response"; then exit 1; else echo "Job completed.";fi
Write
Preview
Markdown
is supported
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