d98300ca 2022-11-20 Pavel Safronov | 1 | # Copied from |
afe2bedb 2022-11-16 Pavel S | 2 | # https://gitlab.com/gitlab-org/gitlab/-/blob/master/lib/gitlab/ci/templates/Getting-Started.gitlab-ci.yml |
| 3 | |
87f56c45 2026-05-01 Pavel Safronov | 4 | image: golang:1.26 |
e5da4780 2023-02-18 Pavel Safronov | 5 | |
4988983f 2026-01-16 Pavel Safronov | 6 | stages: # List of stages for jobs, and their order of execution |
9f6e9b21 2023-02-09 Pavel Safronov | 7 | - build-and-test |
c4393431 2022-11-16 Pavel Safronov | 8 | - release |
afe2bedb 2022-11-16 Pavel S | 9 | |
e4962329 2023-02-09 Pavel Safronov | 10 | before_script: |
4988983f 2026-01-16 Pavel Safronov | 11 | - go version |
| 12 | - make --version |
e4962329 2023-02-09 Pavel Safronov | 13 | |
9f6e9b21 2023-02-09 Pavel Safronov | 14 | build-job: |
| 15 | stage: build-and-test |
afe2bedb 2022-11-16 Pavel S | 16 | script: |
9f6e9b21 2023-02-09 Pavel Safronov | 17 | - make all |
afe2bedb 2022-11-16 Pavel S | 18 | |
c4393431 2022-11-16 Pavel Safronov | 19 | release: |
| 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: |
ef0e43cf 2023-02-18 Pavel Safronov | 29 | refs: |
| 30 | - tags |
c4393431 2022-11-16 Pavel Safronov | 31 | |
8eeb737d 2023-02-18 Pavel Safronov | 32 | script: |
4988983f 2026-01-16 Pavel Safronov | 33 | - make release |