From ec0c815d56f9e5c42f040ac0ee66d67d4fb8964c Mon Sep 17 00:00:00 2001 From: Adrien Ferrand Date: Thu, 13 Aug 2020 19:00:14 +0200 Subject: [PATCH] Fix names, add docker trigger --- .azure-pipelines/templates/integration-jobs.yml | 4 ++-- .azure-pipelines/templates/release-jobs.yml | 7 +++++++ 2 files changed, 9 insertions(+), 2 deletions(-) diff --git a/.azure-pipelines/templates/integration-jobs.yml b/.azure-pipelines/templates/integration-jobs.yml index c0f46e4..7c48eb6 100644 --- a/.azure-pipelines/templates/integration-jobs.yml +++ b/.azure-pipelines/templates/integration-jobs.yml @@ -13,7 +13,7 @@ jobs: path: $(Build.ArtifactStagingDirectory) artifact: docker displayName: Store Docker artifact - - job: unit-tests + - job: unit_tests dependsOn: build pool: vmImage: ubuntu-18.04 @@ -28,7 +28,7 @@ jobs: mkdir -p ./bin 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 - - job: integration-tests + - job: integration_tests dependsOn: build pool: vmImage: ubuntu-18.04 diff --git a/.azure-pipelines/templates/release-jobs.yml b/.azure-pipelines/templates/release-jobs.yml index 0bb4602..2670b6a 100644 --- a/.azure-pipelines/templates/release-jobs.yml +++ b/.azure-pipelines/templates/release-jobs.yml @@ -43,3 +43,10 @@ jobs: releaseNotesFile: $(Build.SourcesDirectory)/release_$(ReleaseVersion).md addChangeLog: false 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