-
Notifications
You must be signed in to change notification settings - Fork 2
/
.gitlab-ci.yml
45 lines (43 loc) · 1.12 KB
/
.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
40
41
42
43
44
45
stages:
- build
- release
create:
stage: build
image: docker:latest
when: manual
services:
- docker:dind
variables:
DOCKER_TLS_CERTDIR: "/certs"
IMAGE_NAME: gameimage:latest
before_script:
- echo GE_JOB_ID=$CI_JOB_ID >> generate_executables.env
script:
- cat /etc/*-release
- apk add bash wget git font-noto
- mkdir build
- ./deploy/makeself-gameimage.sh
artifacts:
paths:
- ./build/gameimage.run
reports:
dotenv: generate_executables.env
deploy:
stage: release
image: registry.gitlab.com/gitlab-org/release-cli:latest
rules:
- if: $CI_COMMIT_TAG # Run this job when a tag is created
script:
- echo 'running release_job'
- echo 'Previous Job ID is printed below'
- echo $GE_JOB_ID
release: # See https://docs.gitlab.com/ee/ci/yaml/#release for available properties
tag_name: '$CI_COMMIT_TAG'
description: '$CI_COMMIT_TAG'
assets:
links:
- name: 'gameimage.run'
url: 'https://gitlab.com/formigoni/gameimage/-/jobs/${GE_JOB_ID}/artifacts/file/build/gameimage.run'
needs:
- job: create
artifacts: true