Commit 378f4c3f authored by malzer's avatar malzer
Browse files

Update configs

parent 7eb3d294
variables:
BRANCH_NAME: $CI_COMMIT_REF_NAME
PIPELINE_ID: $CI_PIPELINE_IID
stages:
- build_platin
- build_docs
......@@ -42,8 +43,8 @@ build_docs:
- RELEASE_VERSION="$(date +'%Y')${beta}"
- make clean html SPHINXOPTS="-D version=${BUILD_VERSION} -D release=${RELEASE_DATE}"
artifacts:
paths:
- docs/_build/html
paths:
- docs/_build/html
build_dev:
only:
......@@ -89,7 +90,9 @@ package_dev:
name: 'dariahde-geobrowser-beta'
description: 'DARIAH-DE Geo-Browser BETA'
url: $BETA_URL
deb_file_name: '${name}_${VERSION}.deb'
build_number: $PIPELINE_ID
full_version: '${VERSION}-BETA-${build_number}'
deb_file_name: '${name}_${full_version}.deb'
script:
- gem install fpm
- cd dist
......@@ -99,8 +102,9 @@ package_dev:
--description "${description}"
--maintainer "DARIAH-DE <info@de.dariah.eu>"
--vendor "DARIAH-DE"
--iteration ${build_number}
--url ${url}
--version ${VERSION}
--version ${VERSION}-BETA
--prefix ${prefix} .'
- mv $deb_file_name ../$deb_file_name
artifacts:
......@@ -117,7 +121,9 @@ package_live:
name: 'dariahde-geobrowser'
description: 'DARIAH-DE Geo-Browser'
url: $LIVE_URL
deb_file_name: '${name}_${VERSION}.deb'
build_number: $PIPELINE_ID
full_version: '${VERSION}-${build_number}'
deb_file_name: '${name}_${full_version}.deb'
script:
- gem install fpm
- cd dist
......@@ -127,16 +133,14 @@ package_live:
--description "${description}"
--maintainer "DARIAH-DE <info@de.dariah.eu>"
--vendor "DARIAH-DE"
--iteration ${build_number}
--url ${url}
--version ${VERSION}
--prefix ${prefix} .'
- mv $deb_file_name ../$deb_file_name
- echo "DEB_NAME=${deb_file_name}" >> debname.env
artifacts:
paths:
- $deb_file_name
reports:
dotenv: debname.env
deploy_dev:
only:
......@@ -144,13 +148,38 @@ deploy_dev:
image: alpine:3.14
stage:
deploy
variables:
build_number: $PIPELINE_ID
full_version: '${VERSION}-BETA-${build_number}'
DEB_NAME: 'dariahde-geobrowser-beta_${full_version}.deb'
script:
- 'apk add --no-cache bash'
- 'apk add --no-cache curl'
- curl --version
- export DEB_FILE="$(ls ./*.deb)"
- echo "$DEB_NAME"
- echo "$DEB_FILE"
- 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}
- 'curl -u ci:${APTLY_PASSWORD} -X PUT -H "Content-Type: application/json" --data "{}" ${APTLY_URL}/publish/:./indy'
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'
script:
- 'apk add --no-cache bash'
- 'apk add --no-cache curl'
- curl --version
- export DEB_FILE="$(ls ./*.deb)"
- echo $deb_package
- echo $DEB_NAME
- echo "$DEB_NAME"
- echo "$DEB_FILE"
- 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}
- 'curl -u ci:${APTLY_PASSWORD} -X PUT -H "Content-Type: application/json" --data "{}" ${APTLY_URL}/publish/:./indy'
......@@ -26,19 +26,17 @@ entry: {
plugins: [
new CopyWebpackPlugin({
patterns: [
{ from: "./embed/php", to: path.resolve(__dirname, './dist/embed/php') },
{ from: "./PLATIN/css", to: path.resolve(__dirname, './dist/PLATIN/css') },
{ from: "./PLATIN/platin.js", to: path.resolve(__dirname, './dist/PLATIN/platin.js') },
{ from: "./PLATIN/lib", to: path.resolve(__dirname, './dist/PLATIN/lib') },
{ from: "./PLATIN/data", to: path.resolve(__dirname, './dist/PLATIN/data') },
{ from: "./PLATIN/images", to: path.resolve(__dirname, './dist/PLATIN/images') },
{ from: "./php", to: path.resolve(__dirname, './dist/php') },
{ from: "./docs/_build/html", to: path.resolve(__dirname, './dist/doc') },
{ from: "./data", to: path.resolve(__dirname, './dist/data') },
{ from: "./css", to: path.resolve(__dirname, './dist/css') },
{ from: "./edit/css", to: path.resolve(__dirname, './dist/edit/css') },
{ from: "./edit/img", to: path.resolve(__dirname, './dist/edit/img') },
{ from: "./PLATIN/css", to: path.resolve(__dirname, './dist/PLATIN/css') },
{ from: "./PLATIN/platin.js", to: path.resolve(__dirname, './dist/PLATIN/platin.js') },
{ from: "./PLATIN/lib", to: path.resolve(__dirname, './dist/PLATIN/lib') },
{ from: "./PLATIN/data", to: path.resolve(__dirname, './dist/PLATIN/data') },
{ from: "./PLATIN/images", to: path.resolve(__dirname, './dist/PLATIN/images') },
{ from: "./PLATIN/php", to: path.resolve(__dirname, './dist/PLATIN/php') },
]
}),
]
......
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