-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy path.gitlab-ci.yml
More file actions
33 lines (31 loc) · 802 Bytes
/
Copy path.gitlab-ci.yml
File metadata and controls
33 lines (31 loc) · 802 Bytes
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
stages:
- test
- release
test:
stage: test
image: bash:latest
before_script:
- apk add --no-cache git bats
script:
- bats test/
release:
stage: release
image: registry.gitlab.com/gitlab-org/release-cli:latest
rules:
- if: $CI_COMMIT_TAG =~ /^v/
script:
- echo "Creating release for $CI_COMMIT_TAG"
release:
tag_name: $CI_COMMIT_TAG
description: "Release $CI_COMMIT_TAG"
assets:
links:
- name: fleet.sh
url: "${CI_PROJECT_URL}/-/raw/${CI_COMMIT_TAG}/fleet.sh"
link_type: other
- name: install.sh
url: "${CI_PROJECT_URL}/-/raw/${CI_COMMIT_TAG}/install.sh"
link_type: other
- name: VERSION
url: "${CI_PROJECT_URL}/-/raw/${CI_COMMIT_TAG}/VERSION"
link_type: other