Skip to content
Snippets Groups Projects
Commit ca952759 authored by Nicola Jordan's avatar Nicola Jordan
Browse files

link to the executables in releases

parent 107a35e4
No related branches found
No related tags found
No related merge requests found
Pipeline #257823 failed
...@@ -87,15 +87,26 @@ sonarcloud-check: ...@@ -87,15 +87,26 @@ sonarcloud-check:
except: except:
- tags # do not run for releases - tags # do not run for releases
release_artifacts_job: # to create a new release, do a release
generate_executables:
stage: release stage: release
rules: rules:
- if: $CI_COMMIT_TAG # Run this job when a tag is created, through the UI of gitlab - if: $CI_COMMIT_TAG # Run this job when a tag is created
before_script:
- echo ARTIFACT_JOB_ID=$CI_JOB_ID >> executable_artifacts.env
script: script:
- ./go-executable-build.sh boilr boilr.go - ./go-executable-build.sh boilr boilr.go
artifacts: artifacts:
paths: paths:
- build/* - builds/boilr-darwin-amd64
- builds/boilr-darwin-arm64
- builds/boilr-linux-amd64
- builds/boilr-linux-386
- builds/boilr-windows-386.exe
- builds/boilr-windows-amd64.exe
reports:
# To ensure we've access to this file in the next stage
dotenv: executable_artifacts.env
release_job: release_job:
stage: release stage: release
...@@ -111,3 +122,17 @@ release_job: ...@@ -111,3 +122,17 @@ release_job:
release: # See https://docs.gitlab.com/ee/ci/yaml/#release for available properties release: # See https://docs.gitlab.com/ee/ci/yaml/#release for available properties
tag_name: '$CI_COMMIT_TAG' tag_name: '$CI_COMMIT_TAG'
description: '$CI_COMMIT_TAG' description: '$CI_COMMIT_TAG'
assets:
links:
- name: 'Linux amd64'
url: 'https://gitlab.ost.ch/ifs/boilr/-/jobs/${ARTIFACT_JOB_ID}/artifacts/file/builds/boilr-linux-amd64'
- name: 'Linux (32-bit))'
url: 'https://gitlab.ost.ch/ifs/boilr/-/jobs/${ARTIFACT_JOB_ID}/artifacts/file/builds/boilr-linux-386'
- name: 'Mac M1/M2 Executable'
url: 'https://gitlab.ost.ch/ifs/boilr/-/jobs/${ARTIFACT_JOB_ID}/artifacts/file/builds/boilr-darwin-arm64'
- name: 'Mac (Intel)'
url: 'https://gitlab.ost.ch/ifs/boilr/-/jobs/${ARTIFACT_JOB_ID}/artifacts/file/builds/boilr-darwin-amd64'
- name: 'Windows 32-bit'
url: 'https://gitlab.ost.ch/ifs/boilr/-/jobs/${ARTIFACT_JOB_ID}/artifacts/file/builds/boilr-windows-386.exe'
- name: 'Windows 64-bit'
url: 'https://gitlab.ost.ch/ifs/boilr/-/jobs/${ARTIFACT_JOB_ID}/artifacts/file/builds/boilr-windows-amd64.exe'
...@@ -12,7 +12,7 @@ package_name=${package_split[-1]} ...@@ -12,7 +12,7 @@ package_name=${package_split[-1]}
target_folder="builds/" target_folder="builds/"
platforms=("windows/amd64" "windows/386" "darwin/amd64" "darwin/arm64" "linux/amd64" "linux/amd64") platforms=("windows/amd64" "windows/386" "darwin/amd64" "darwin/arm64" "linux/amd64" "linux/386")
for platform in "${platforms[@]}" for platform in "${platforms[@]}"
do do
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment