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

Update gitlab.ci.yml

parent 0e55a679
......@@ -14,7 +14,7 @@ build_platin:
image: ruby:3.0
stage: build_platin
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
- cd PLATIN
- rake all
......@@ -59,22 +59,21 @@ build_dev:
reports:
dotenv: build.env
#build_live:
# only:
# - master
# - merge-requests
#image: node:15
#stage: build_app
#script:
# - npm ci
# - VERSION=$(node -p "require('./package.json').version")
# - echo "VERSION=${VERSION}" >> build.env
# - npm run build:release
#artifacts:
# paths:
# - dist/
#reports:
# dotenv: build.env
build_live:
only:
- master
image: node:15
stage: build_app
script:
- npm ci
- VERSION=$(node -p "require('./package.json').version")
#- echo "VERSION=${VERSION}" >> build.env
- npm run build:release
artifacts:
paths:
- dist/
reports:
dotenv: build.env
package_dev:
only:
......@@ -104,35 +103,33 @@ package_dev:
paths:
- $deb_file_name
#package_live:
# only:
# - master
# - merge_requests
# image: ruby:3.0
# stage: packaging
# variables:
# prefix: $LIVE_PATH
# name: 'dariahde-geobrowser'
# description: 'DARIAH-DE Geo-Browser'
# url: $LIVE_URL
# deb_file_name: '${name}_${VERSION}.deb'
# script:
# - gem install fpm
# - cd dist
# - 'fpm -p ${deb_file_name}
# -t deb -a noarch -s dir
# --name ${name}
# --description "${description}"
# --maintainer "DARIAH-DE <info@de.dariah.eu>"
# --vendor "DARIAH-DE"
# --url ${url}
# --version ${VERSION}
# --prefix ${prefix} .'
#- mv $deb_file_name ../$deb_file_name
#artifacts:
# paths:
# - $deb_file_name
package_live:
only:
- master
image: ruby:3.0
stage: packaging
variables:
prefix: $LIVE_PATH
name: 'dariahde-geobrowser'
description: 'DARIAH-DE Geo-Browser'
url: $LIVE_URL
deb_file_name: '${name}_${VERSION}.deb'
script:
- gem install fpm
- cd dist
- 'fpm -p ${deb_file_name}
-t deb -a noarch -s dir
--name ${name}
--description "${description}"
--maintainer "DARIAH-DE <info@de.dariah.eu>"
--vendor "DARIAH-DE"
--url ${url}
--version ${VERSION}
--prefix ${prefix} .'
- mv $deb_file_name ../$deb_file_name
artifacts:
paths:
- $deb_file_name
deploy_dev:
only:
......@@ -148,3 +145,4 @@ deploy_dev:
- 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 ${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
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