Commit 86921df6 authored by malzer's avatar malzer
Browse files

Update gitlab.ci.yml

parent 70b615d2
......@@ -10,6 +10,7 @@ stages:
build_platin:
only:
- tags
- develop
- master
image: ruby:3.0
stage: build_platin
......@@ -25,6 +26,7 @@ build_platin:
build_docs:
only:
- tags
- develop
- master
image: python:3
stage: build_docs
......@@ -46,6 +48,7 @@ build_docs:
build_dev:
only:
- tags
- develop
image: node:15
stage: build_app
script:
......@@ -67,7 +70,7 @@ build_live:
script:
- npm ci
- VERSION=$(node -p "require('./package.json').version")
#- echo "VERSION=${VERSION}" >> build.env
- echo "VERSION=${VERSION}" >> build.env
- npm run build:release
artifacts:
paths:
......@@ -78,6 +81,7 @@ build_live:
package_dev:
only:
- tags
- develop
image: ruby:3.0
stage: packaging
variables:
......@@ -127,9 +131,12 @@ package_live:
--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:
......@@ -141,8 +148,9 @@ deploy_dev:
- 'apk add --no-cache bash'
- 'apk add --no-cache curl'
- curl --version
- deb_package=$(ls ./*.deb)
- export DEB_FILE="$(ls ./*.deb)"
- 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
- echo $DEB_NAME
- 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'
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