Commit 3199e56e authored by malzer's avatar malzer
Browse files

Update gitlab.ci.yml

parent 0e55a679
...@@ -14,7 +14,7 @@ build_platin: ...@@ -14,7 +14,7 @@ build_platin:
image: ruby:3.0 image: ruby:3.0
stage: build_platin stage: build_platin
script: script:
- git clone https://github.com/DARIAH-DE/PLATIN.git - git clone -b develop --single-branch https://github.com/DARIAH-DE/PLATIN.git
- apt-get update && apt-get -y install default-jre - apt-get update && apt-get -y install default-jre
- cd PLATIN - cd PLATIN
- rake all - rake all
...@@ -59,22 +59,21 @@ build_dev: ...@@ -59,22 +59,21 @@ build_dev:
reports: reports:
dotenv: build.env dotenv: build.env
#build_live: build_live:
# only: only:
# - master - master
# - merge-requests image: node:15
#image: node:15 stage: build_app
#stage: build_app script:
#script: - npm ci
# - npm ci - VERSION=$(node -p "require('./package.json').version")
# - VERSION=$(node -p "require('./package.json').version") #- echo "VERSION=${VERSION}" >> build.env
# - echo "VERSION=${VERSION}" >> build.env - npm run build:release
# - npm run build:release artifacts:
#artifacts: paths:
# paths: - dist/
# - dist/ reports:
#reports: dotenv: build.env
# dotenv: build.env
package_dev: package_dev:
only: only:
...@@ -104,35 +103,33 @@ package_dev: ...@@ -104,35 +103,33 @@ package_dev:
paths: paths:
- $deb_file_name - $deb_file_name
#package_live: package_live:
# only: only:
# - master - master
# - merge_requests image: ruby:3.0
# image: ruby:3.0 stage: packaging
# stage: packaging variables:
# variables: prefix: $LIVE_PATH
# prefix: $LIVE_PATH name: 'dariahde-geobrowser'
# name: 'dariahde-geobrowser' description: 'DARIAH-DE Geo-Browser'
# description: 'DARIAH-DE Geo-Browser' url: $LIVE_URL
# url: $LIVE_URL deb_file_name: '${name}_${VERSION}.deb'
# deb_file_name: '${name}_${VERSION}.deb' script:
# script: - gem install fpm
# - gem install fpm - cd dist
# - cd dist - 'fpm -p ${deb_file_name}
# - 'fpm -p ${deb_file_name} -t deb -a noarch -s dir
# -t deb -a noarch -s dir --name ${name}
# --name ${name} --description "${description}"
# --description "${description}" --maintainer "DARIAH-DE <info@de.dariah.eu>"
# --maintainer "DARIAH-DE <info@de.dariah.eu>" --vendor "DARIAH-DE"
# --vendor "DARIAH-DE" --url ${url}
# --url ${url} --version ${VERSION}
# --version ${VERSION} --prefix ${prefix} .'
# --prefix ${prefix} .' - mv $deb_file_name ../$deb_file_name
#- mv $deb_file_name ../$deb_file_name artifacts:
#artifacts: paths:
# paths: - $deb_file_name
# - $deb_file_name
deploy_dev: deploy_dev:
only: only:
...@@ -148,3 +145,4 @@ deploy_dev: ...@@ -148,3 +145,4 @@ deploy_dev:
- echo $deb_package - echo $deb_package
- curl -u ci:${APTLY_PASSWORD} -X POST -F file=@deb_package ${APTLY_URL}/files/${deb_package} - curl -u ci:${APTLY_PASSWORD} -X POST -F file=@deb_package ${APTLY_URL}/files/${deb_package}
- curl -u ci:${APTLY_PASSWORD} -X POST ${APTLY_URL}/repos/indy-releases/file/${deb_package} - curl -u ci:${APTLY_PASSWORD} -X POST ${APTLY_URL}/repos/indy-releases/file/${deb_package}
- curl -u ci:${APTLY_PASSWORD} -X PUT -H 'Content-Type: application/json' --data '{}' ${APTLY_URL}/publish/:./indy
Supports Markdown
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