fuzzyworld

template / files / .fw-ci.yml

.fw-ci.yml

642 B · history · blame

1# Copied from
2# https://gitlab.com/gitlab-org/gitlab/-/blob/master/lib/gitlab/ci/templates/Getting-Started.gitlab-ci.yml
3
4image: golang:1.26
5
6stages: # List of stages for jobs, and their order of execution
7 - build-and-test
8 - release
9
10before_script:
11 - go version
12 - make --version
13
14build-job:
15 stage: build-and-test
16 script:
17 - make all
18
19release:
20 stage: release
21
22 variables:
23 # Disable shallow cloning so that goreleaser can diff between tags to
24 # generate a changelog.
25 GIT_DEPTH: 0
26
27 # Only run this release job for tags, not every commit (for example).
28 only:
29 refs:
30 - tags
31
32 script:
33 - make release