nextcloud-app-radio/.gitlab-ci.yml
2020-11-26 11:18:41 +01:00

42 lines
1.0 KiB
YAML

stages:
- compiling
- packaging
- publishing
image: ubuntu:20.10
Compile:
stage: compiling
script:
- apt update
- DEBIAN_FRONTEND="noninteractive" apt install -y npm
- make dev-setup
- make build-js
cache:
paths:
- node_modules/
Pack:
stage: packaging
script:
- wget https://github.com/ChristophWurst/krankerl/releases/download/v0.12.3/krankerl_0.12.3_amd64.deb
- sudo dpkg -i krankerl_0.12.3_amd64.deb
- krankerl package
artifacts:
paths:
- build/artifacts/radio.tar.gz
Publish Stable:
stage: publishing
image: registry.gitlab.com/gitlab-org/release-cli:latest
needs:
- job: packaging
artifacts: true
rules:
- if: $CI_COMMIT_TAG
script:
- >
release-cli create --name "v$CI_COMMIT_TAG" --description $EXTRA_DESCRIPTION
--tag-name $CI_COMMIT_TAG --ref $CI_COMMIT_SHA
--assets-link '{"name":"matrixregistration-$CI_COMMIT_TAG","url":"https://gitlab.com/olze/matrixregistration/-/jobs/artifacts/$CI_COMMIT_TAG/download?job=production","link_type":"other"}'