diff options
author | Mohammed Al Sahaf <[email protected]> | 2020-02-29 20:09:50 +0300 |
---|---|---|
committer | GitHub <[email protected]> | 2020-02-29 20:09:50 +0300 |
commit | e717028f83bcb8187b8e4559c9abacd529c12eea (patch) | |
tree | 746f51a382860de763877bddc56899efebe0995f | |
parent | a60da8e7ab76a890566ce8047b92a7576a027e18 (diff) | |
download | caddy-e717028f83bcb8187b8e4559c9abacd529c12eea.tar.gz caddy-e717028f83bcb8187b8e4559c9abacd529c12eea.zip |
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
-rw-r--r-- | azure-pipelines.yml | 12 |
1 files changed, 12 insertions, 0 deletions
diff --git a/azure-pipelines.yml b/azure-pipelines.yml index 808a532ac..0695417eb 100644 --- a/azure-pipelines.yml +++ b/azure-pipelines.yml @@ -104,6 +104,18 @@ jobs: workingDirectory: '$(modulePath)/cmd/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 - script: | (golangci-lint run --out-format junit-xml) > test-results/lint-result.xml |