diff --git a/.azure-pipelines/templates/stages/deploy-stage.yml b/.azure-pipelines/templates/stages/deploy-stage.yml index e6cb6a0ba..9fe49bd9e 100644 --- a/.azure-pipelines/templates/stages/deploy-stage.yml +++ b/.azure-pipelines/templates/stages/deploy-stage.yml @@ -39,6 +39,7 @@ stages: - group: certbot-common steps: - bash: | + set -e sudo apt-get update sudo apt-get install -y --no-install-recommends snapd sudo snap install --classic snapcraft @@ -53,6 +54,7 @@ stages: inputs: secureFile: snapcraft.cfg - bash: | + set -e mkdir -p .snapcraft ln -s $(snapcraftCfg.secureFilePath) .snapcraft/snapcraft.cfg for SNAP_FILE in snap/*.snap; do @@ -76,7 +78,7 @@ stages: artifact: docker_$(DOCKER_ARCH) path: $(Build.SourcesDirectory) displayName: Retrieve Docker images - - bash: docker load --input $(Build.SourcesDirectory)/images.tar + - bash: set -e && docker load --input $(Build.SourcesDirectory)/images.tar displayName: Load Docker images - task: Docker@2 inputs: @@ -93,5 +95,5 @@ stages: # Certbot organization on Docker Hub. containerRegistry: docker-hub displayName: Login to Docker Hub - - bash: tools/docker/deploy.sh $(dockerTag) $DOCKER_ARCH + - bash: set -e && tools/docker/deploy.sh $(dockerTag) $DOCKER_ARCH displayName: Deploy the Docker images