diff options
author | Adrien Ferrand <adferrand@users.noreply.github.com> | 2020-10-23 21:02:35 +0300 |
---|---|---|
committer | GitHub <noreply@github.com> | 2020-10-23 21:02:35 +0300 |
commit | 00ed56afd6bd09d86e1ca3ea9fe589a2464bcc08 (patch) | |
tree | 9f8ac3e2823446e4d78f372448f5ee5704e961bd /.azure-pipelines | |
parent | b6e3a3ad020059265c780a6b0854c81927c43f9a (diff) |
Execute basic integration tests against Certbot dockers during CI (#8396)
Fixes #8202
This PR adds an Azure Pipeline job to execute certbot plugins --prepare for each Docker image created during the CI on amd64.
* Prepare basic integration tests for certbot dockers
* Add a displayName for the integration tests task
Diffstat (limited to '.azure-pipelines')
-rw-r--r-- | .azure-pipelines/templates/jobs/packaging-jobs.yml | 19 |
1 files changed, 19 insertions, 0 deletions
diff --git a/.azure-pipelines/templates/jobs/packaging-jobs.yml b/.azure-pipelines/templates/jobs/packaging-jobs.yml index 8da30b1f5..f4039987c 100644 --- a/.azure-pipelines/templates/jobs/packaging-jobs.yml +++ b/.azure-pipelines/templates/jobs/packaging-jobs.yml @@ -31,6 +31,25 @@ jobs: path: $(Build.ArtifactStagingDirectory) artifact: docker_$(DOCKER_ARCH) displayName: Store Docker artifact + - job: docker_run + dependsOn: docker_build + pool: + vmImage: ubuntu-18.04 + steps: + - task: DownloadPipelineArtifact@2 + inputs: + artifact: docker_amd64 + path: $(Build.SourcesDirectory) + displayName: Retrieve Docker images + - bash: set -e && docker load --input $(Build.SourcesDirectory)/images.tar + displayName: Load Docker images + - bash: | + set -ex + DOCKER_IMAGES=$(docker images --filter reference='*/certbot' --filter reference='*/dns-*' --format '{{.Repository}}:{{.Tag}}') + for DOCKER_IMAGE in ${DOCKER_IMAGES} + do docker run --rm "${DOCKER_IMAGE}" plugins --prepare + done + displayName: Run integration tests for Docker images - job: installer_build pool: vmImage: vs2017-win2016 |