-
Notifications
You must be signed in to change notification settings - Fork 0
/
.gitlab-ci.yml
39 lines (37 loc) · 931 Bytes
/
.gitlab-ci.yml
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
stages:
- generate
- release
generate_linux:
stage: generate
image: registry.gitlab.com/clecherbauer/docker-images/python:3.8-debian-bullseye
script:
- export PYTHONPATH=$PWD/.pydeps
- export PATH=$PWD/.pydeps/bin:$PATH
- apt update
- apt install zip -y
- source ./build.sh
- build_linux
- echo LINUX_JOB_ID=$CI_JOB_ID >> linux.env
artifacts:
paths:
- docker-alias.linux64.zip
reports:
dotenv: linux.env
release:
stage: release
image: registry.gitlab.com/gitlab-org/release-cli:latest
script:
- echo 'running release_job'
needs:
- job: generate_linux
artifacts: true
release:
name: 'Release $CI_COMMIT_TAG'
description: '$CI_COMMIT_TAG'
tag_name: '$CI_COMMIT_TAG'
assets:
links:
- name: 'Linux executable'
url: '$CI_PROJECT_URL/-/jobs/${LINUX_JOB_ID}/artifacts/raw/docker-alias.linux64.zip'
only:
- tags