Commit 32818fe0 authored by malzer's avatar malzer
Browse files

Update gitlab-ci.yml to replace master with main

parent 52ade237
......@@ -25,11 +25,11 @@ build_dev_platin:
build_live_platin:
only:
- master
- main
image: ruby:3.0
stage: build_platin
script:
- git clone -b master --single-branch https://github.com/DARIAH-DE/PLATIN.git
- git clone -b main --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
- master
- main
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" = 'master'; then beta=""; fi
- if test "$BRANCH_NAME" = 'main'; 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:
- master
- main
image: node:15
stage: build_app
script:
......@@ -136,7 +136,7 @@ package_dev:
package_live:
only:
- master
- main
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:
- master
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:
# - main
#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
Markdown is supported
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment