nextcloud-app-radio/.gitlab-ci.yml

42 lines
1.0 KiB
YAML
Raw Normal View History

2020-10-13 09:31:35 +00:00
stages:
- compiling
2020-11-26 10:00:15 +00:00
- packaging
- publishing
2020-10-13 09:31:35 +00:00
2020-11-26 09:59:14 +00:00
image: ubuntu:20.10
2020-10-13 09:31:35 +00:00
Compile:
stage: compiling
script:
2020-10-13 09:36:41 +00:00
- apt update
2020-10-13 09:59:05 +00:00
- DEBIAN_FRONTEND="noninteractive" apt install -y npm
2020-11-26 09:59:14 +00:00
- make dev-setup
- make build-js
2020-11-26 10:18:41 +00:00
cache:
2020-10-13 09:31:35 +00:00
paths:
2020-11-26 10:18:41 +00:00
- node_modules/
2020-10-13 09:31:35 +00:00
Pack:
stage: packaging
script:
2020-11-26 10:18:41 +00:00
- 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
2020-10-13 09:31:35 +00:00
artifacts:
paths:
2020-11-26 10:18:41 +00:00
- build/artifacts/radio.tar.gz
2020-10-13 09:31:35 +00:00
Publish Stable:
stage: publishing
2020-11-26 10:18:41 +00:00
image: registry.gitlab.com/gitlab-org/release-cli:latest
needs:
- job: packaging
artifacts: true
rules:
- if: $CI_COMMIT_TAG
2020-10-13 09:31:35 +00:00
script:
2020-11-26 10:18:41 +00:00
- >
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"}'