Skip to content
This repository has been archived by the owner on Jul 27, 2023. It is now read-only.

Commit

Permalink
set tag in gitlab-ci
Browse files Browse the repository at this point in the history
Add binary signing
  • Loading branch information
derekwbrown committed Jan 17, 2018
1 parent 5d1af00 commit 41ad6eb
Show file tree
Hide file tree
Showing 2 changed files with 10 additions and 5 deletions.
11 changes: 6 additions & 5 deletions .gitlab-ci.yml
Original file line number Diff line number Diff line change
Expand Up @@ -27,14 +27,15 @@ build_windows_executable:
- xcopy /q/h/e/s * %GOPATH%\src\github.com\DataDog\datadog-process-agent
- cd %GOPATH%\src\github.com\DataDog\datadog-process-agent
stage: binary_build
tags: ["runner:windows-agent6"]
tags: ["runner:windows-process-agent"]
script:
- cd %GOPATH%\src\github.com\DataDog\datadog-process-agent
- rake deps
- rake build
# after_script:
- call rake deps
- call rake build windres=true
after_script:
- copy %GOPATH%\src\github.com\DataDog\datadog-process-agent\process-agent.exe
# - '"C:\Program Files\Amazon\AWSCLI\aws.exe" s3 cp --profile ci-datadog-agent %S3_CP_OPTIONS% --recursive --exclude "*" --include "*.msi" .omnibus/pkg/ %S3_ARTEFACTS_URI%/'
artifacts:
expire_in: 2 weeks
paths:
- ./datadog-process-agent.exe
- ./process-agent.exe
4 changes: 4 additions & 0 deletions gorake.rb
Original file line number Diff line number Diff line change
Expand Up @@ -63,6 +63,10 @@ def go_build(program, opts={})

end
sh "#{cmd} -ldflags \"#{ldflags.join(' ')}\" #{program}"
if ENV['SIGN_WINDOWS'] then
signcmd = "signtool sign /v /t http://timestamp.verisign.com/scripts/timestamp.dll /fd SHA256 /sm /s \"My\" /sha1 ECCDAE36FDCB654D2CBAB3E8975AA55469F96E4C process-agent.exe"
sh signcmd
end
end


Expand Down

0 comments on commit 41ad6eb

Please sign in to comment.