Skip to content
Snippets Groups Projects

Change output path to be picked up by artifact upload

Merged username-removed-1377056 requested to merge dvdmuckle/gitlab-ci-yml:patch-2 into master
1 unresolved thread

Because Gitlab CI can't upload artifacts from outside the build dir, and Go by default builds outside of that, we need to output to the build dir for artifact upload.

Merge request reports

Loading
Loading

Activity

Filter activity
  • Approvals
  • Assignees & reviewers
  • Comments (from bots)
  • Comments (from users)
  • Commits & branches
  • Edits
  • Labels
  • Lock status
  • Mentions
  • Merge request status
  • Tracking
29 29 compile:
30 30 stage: build
31 31 script:
32 - go build -race -ldflags "-extldflags '-static'" -o mybinary
32 - go build -race -ldflags "-extldflags '-static'" -o $CI_PROJECT_DIR/mybinary
Please register or sign in to reply
Loading