Fix names, add docker trigger

This commit is contained in:
Adrien Ferrand 2020-08-13 19:00:14 +02:00
parent 6d14e836ff
commit ec0c815d56
2 changed files with 9 additions and 2 deletions

View File

@ -13,7 +13,7 @@ jobs:
path: $(Build.ArtifactStagingDirectory) path: $(Build.ArtifactStagingDirectory)
artifact: docker artifact: docker
displayName: Store Docker artifact displayName: Store Docker artifact
- job: unit-tests - job: unit_tests
dependsOn: build dependsOn: build
pool: pool:
vmImage: ubuntu-18.04 vmImage: ubuntu-18.04
@ -28,7 +28,7 @@ jobs:
mkdir -p ./bin mkdir -p ./bin
curl -fsSL https://goss.rocks/install | GOSS_DST=./bin sh curl -fsSL https://goss.rocks/install | GOSS_DST=./bin sh
GOSS_PATH=./bin/goss GOSS_SLEEP=2 GOSS_FILES_PATH=./tests ./bin/dgoss run adferrand/backuppc GOSS_PATH=./bin/goss GOSS_SLEEP=2 GOSS_FILES_PATH=./tests ./bin/dgoss run adferrand/backuppc
- job: integration-tests - job: integration_tests
dependsOn: build dependsOn: build
pool: pool:
vmImage: ubuntu-18.04 vmImage: ubuntu-18.04

View File

@ -43,3 +43,10 @@ jobs:
releaseNotesFile: $(Build.SourcesDirectory)/release_$(ReleaseVersion).md releaseNotesFile: $(Build.SourcesDirectory)/release_$(ReleaseVersion).md
addChangeLog: false addChangeLog: false
displayName: Create GitHub Release displayName: Create GitHub Release
- job: trigger-dockerhub
pool:
vmImage: ubuntu-18.04
steps:
- script: |
curl -H "Content-Type: application/json" --data '{"docker_tag": "master"}' -X POST https://registry.hub.docker.com/u/adferrand/backuppc/trigger/$(DOCKERHUB_TRIGGER_ID)/
displayName: Trigger DockerHub build