| Hash | Commit message | Author | Date | Files | + | - |
1 | commit 61ed12453140a432370a045ccaa9f76b5bfb3e6e |
2 | Author: Connor Etherington <[email protected]> |
3 | Date: Fri Sep 13 22:57:45 2024 +0200 |
4 | |
5 | Install release-cli and create GitLab release |
6 | --- |
7 | .gitlab-ci.yml | 17 +++++++---------- |
8 | 1 file changed, 7 insertions(+), 10 deletions(-) |
9 | |
10 | diff --git a/.gitlab-ci.yml b/.gitlab-ci.yml |
11 | index 8a39f36..0fd0a84 100644 |
12 | --- a/.gitlab-ci.yml |
13 | +++ b/.gitlab-ci.yml |
14 | @@ -1,19 +1,16 @@ |
15 | -image: alpine:latest |
16 | - |
17 | stages: |
18 | - release |
19 | - - deploy |
20 | |
21 | release_job: |
22 | stage: release |
23 | + image: ruby:3.1 |
24 | + before_script: |
25 | + - apt-get update -y |
26 | + - apt-get install -y curl |
27 | + - curl -o /usr/local/bin/release-cli -L --fail https://gitlab.com/gitlab-org/release-cli/-/releases/v0.12.0/downloads/release-cli-linux-amd64 |
28 | + - chmod +x /usr/local/bin/release-cli |
29 | script: |
30 | - echo "Creating release for tag $CI_COMMIT_TAG" |
31 | + - release-cli create --name "Release $CI_COMMIT_TAG" --description "Release $CI_COMMIT_TAG" --tag-name "$CI_COMMIT_TAG" --ref "$CI_COMMIT_TAG" |
32 | only: |
33 | - tags |
34 | - release: |
35 | - name: "Release $CI_COMMIT_TAG" |
36 | - description: "Release $CI_COMMIT_TAG" |
37 | - tag_name: "$CI_COMMIT_TAG" |
38 | - ref: "$CI_COMMIT_TAG" |
39 | - |
40 | - |