update pipelines
This commit is contained in:
parent
5886efb0eb
commit
d27e8bced8
1 changed files with 33 additions and 0 deletions
|
@ -5,10 +5,14 @@ before_script:
|
||||||
# Defines stages which are to be executed
|
# Defines stages which are to be executed
|
||||||
stages:
|
stages:
|
||||||
- build
|
- build
|
||||||
|
- upload
|
||||||
|
- release
|
||||||
|
|
||||||
# Stage "build"
|
# Stage "build"
|
||||||
run-build:
|
run-build:
|
||||||
stage: build
|
stage: build
|
||||||
|
rules:
|
||||||
|
- if: $VERSION
|
||||||
script:
|
script:
|
||||||
- apt-get -y install rustup libdbus-glib-1-dev
|
- apt-get -y install rustup libdbus-glib-1-dev
|
||||||
- rustup default stable
|
- rustup default stable
|
||||||
|
@ -19,3 +23,32 @@ run-build:
|
||||||
artifacts:
|
artifacts:
|
||||||
paths:
|
paths:
|
||||||
- build/*
|
- build/*
|
||||||
|
untracked: true
|
||||||
|
|
||||||
|
upload:
|
||||||
|
stage: upload
|
||||||
|
dependencies:
|
||||||
|
- build
|
||||||
|
rules:
|
||||||
|
- if: $VERSION
|
||||||
|
script:
|
||||||
|
- file=$( find ./build -name "*.deb" | head -n 1 )
|
||||||
|
- export filename=$( basename $file )
|
||||||
|
- package_url="${CI_API_V4_URL}/projects/${CI_PROJECT_ID}/packages/generic/gtkgreet/${VERSION}/${filename}"
|
||||||
|
- "curl --header \"JOB-TOKEN: $CI_JOB_TOKEN\" --upload-file \"${file}\" \"${package_url}\""
|
||||||
|
|
||||||
|
release:
|
||||||
|
stage: release
|
||||||
|
image: registry.gitlab.com/gitlab-org/release-cli:latest
|
||||||
|
rules:
|
||||||
|
- if: $VERSION
|
||||||
|
script:
|
||||||
|
- echo "making release! ${package_url}"
|
||||||
|
release:
|
||||||
|
tag_name: "batalert ${VERSION} ${CI_RUNNER_EXECUTABLE_ARCH}"
|
||||||
|
description: "batalert ${VERSION} ${CI_RUNNER_EXECUTABLE_ARCH}"
|
||||||
|
assets:
|
||||||
|
links:
|
||||||
|
- name: "${CI_RUNNER_EXECUTABLE_ARCH} deb"
|
||||||
|
url: "$package_url"
|
||||||
|
|
||||||
|
|
Reference in a new issue