summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
-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