Skip to content
GitLab
Explore
Sign in
Primary navigation
Search or go to…
Project
B
boilr
Manage
Activity
Members
Labels
Plan
Issues
0
Issue boards
Milestones
Wiki
Code
Merge requests
0
Repository
Branches
Commits
Tags
Repository graph
Compare revisions
Snippets
Build
Pipelines
Jobs
Pipeline schedules
Artifacts
Deploy
Releases
Package Registry
Container Registry
Model registry
Operate
Environments
Terraform modules
Monitor
Incidents
Analyze
Value stream analytics
Contributor analytics
CI/CD analytics
Repository analytics
Model experiments
Help
Help
Support
GitLab documentation
Compare GitLab plans
Community forum
Contribute to GitLab
Provide feedback
Terms and privacy
Keyboard shortcuts
?
Snippets
Groups
Projects
Show more breadcrumbs
ifs
boilr
Commits
ca952759
Commit
ca952759
authored
1 year ago
by
Nicola Jordan
Browse files
Options
Downloads
Patches
Plain Diff
link to the executables in releases
parent
107a35e4
No related branches found
Branches containing commit
No related tags found
Tags containing commit
No related merge requests found
Pipeline
#257823
failed
Changes
2
Pipelines
1
Hide whitespace changes
Inline
Side-by-side
Showing
2 changed files
.gitlab-ci.yml
+28
-3
28 additions, 3 deletions
.gitlab-ci.yml
go-executable-build.sh
+1
-1
1 addition, 1 deletion
go-executable-build.sh
with
29 additions
and
4 deletions
.gitlab-ci.yml
+
28
−
3
View file @
ca952759
...
@@ -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'
This diff is collapsed.
Click to expand it.
go-executable-build.sh
+
1
−
1
View file @
ca952759
...
@@ -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
...
...
This diff is collapsed.
Click to expand it.
Preview
0%
Loading
Try again
or
attach a new file
.
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Save comment
Cancel
Please
register
or
sign in
to comment