Browse Source
ci: publish build artifacts (#3103)
* ci: publish build artifacts (per-commit Caddy binaries)
* ci: include OS name in artifact name of *nix binaries so they don't overwrite each other
master
Mohammed Al Sahaf
5 years ago
committed by
GitHub
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23
1 changed files with
12 additions and
0 deletions
-
azure-pipelines.yml
|
@ -104,6 +104,18 @@ jobs: |
|
|
workingDirectory: '$(modulePath)/cmd/caddy' |
|
|
workingDirectory: '$(modulePath)/cmd/caddy' |
|
|
displayName: Build Caddy |
|
|
displayName: Build Caddy |
|
|
|
|
|
|
|
|
|
|
|
- task: PublishBuildArtifacts@1 |
|
|
|
|
|
condition: eq( variables['Agent.OS'], 'Windows_NT' ) |
|
|
|
|
|
inputs: |
|
|
|
|
|
pathtoPublish: '$(modulePath)/cmd/caddy/caddy.exe' |
|
|
|
|
|
artifactName: caddy_v2.exe |
|
|
|
|
|
|
|
|
|
|
|
- task: PublishBuildArtifacts@1 |
|
|
|
|
|
condition: ne( variables['Agent.OS'], 'Windows_NT' ) |
|
|
|
|
|
inputs: |
|
|
|
|
|
pathtoPublish: '$(modulePath)/cmd/caddy/caddy' |
|
|
|
|
|
artifactName: 'caddy_v2_$(Agent.OS)' |
|
|
|
|
|
|
|
|
# its behavior is governed by .golangci.yml |
|
|
# its behavior is governed by .golangci.yml |
|
|
- script: | |
|
|
- script: | |
|
|
(golangci-lint run --out-format junit-xml) > test-results/lint-result.xml |
|
|
(golangci-lint run --out-format junit-xml) > test-results/lint-result.xml |
|
|