summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorMohammed Al Sahaf <msaa1990@gmail.com>2020-02-29 20:09:50 +0300
committerGitHub <noreply@github.com>2020-02-29 20:09:50 +0300
commite717028f83bcb8187b8e4559c9abacd529c12eea (patch)
tree746f51a382860de763877bddc56899efebe0995f
parenta60da8e7ab76a890566ce8047b92a7576a027e18 (diff)
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.yml12
1 files changed, 12 insertions, 0 deletions
diff --git a/azure-pipelines.yml b/azure-pipelines.yml
index 808a532..0695417 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