Skip to content
GitLab
Explore
Sign in
Primary navigation
Search or go to…
Project
G
go-mmproxy
Manage
Activity
Members
Labels
Plan
Issues
Issue boards
Milestones
Iterations
Wiki
Requirements
Code
Merge requests
Repository
Branches
Commits
Tags
Repository graph
Compare revisions
Snippets
Locked files
Build
Pipelines
Jobs
Pipeline schedules
Test cases
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
Code review analytics
Issue analytics
Insights
Model experiments
Help
Help
Support
GitLab documentation
Compare GitLab plans
Community forum
Contribute to GitLab
Provide feedback
Keyboard shortcuts
?
Snippets
Groups
Projects
Show more breadcrumbs
hdacloud
go-mmproxy
Commits
b512b962
Commit
b512b962
authored
2 years ago
by
Lars Seipel
Browse files
Options
Downloads
Patches
Plain Diff
build in GitLab CI/CD
parent
006247ca
Branches
deploy
No related tags found
No related merge requests found
Pipeline
#177812
passed
1 year ago
Stage: test
Changes
1
Pipelines
1
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
.gitlab-ci.yml
+15
-0
15 additions, 0 deletions
.gitlab-ci.yml
with
15 additions
and
0 deletions
.gitlab-ci.yml
0 → 100644
+
15
−
0
View file @
b512b962
build
:
variables
:
comm
:
go-mmproxy
os
:
linux
image
:
docker.io/golang:1.21
before_script
:
-
go mod download
script
:
-
|
for arch in amd64 arm64 ppc64le; do
GOOS=$os GOARCH=$arch CGO_ENABLED=0 go build -o "$comm-$os-$arch" || exit 1
curl -H "JOB-TOKEN: $CI_JOB_TOKEN" --upload-file ./$comm-$os-$arch "${CI_API_V4_URL}/projects/${CI_PROJECT_ID}/packages/generic/go-mmproxy/latest/$comm-$os-$arch" || exit 1
done
only
:
-
deploy
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