diff --git a/.azure-pipelines/advanced-test.yml b/.azure-pipelines/advanced-test.yml index 7a9bb588b..9aca960e8 100644 --- a/.azure-pipelines/advanced-test.yml +++ b/.azure-pipelines/advanced-test.yml @@ -6,4 +6,4 @@ trigger: pr: none stages: - - template: templates/stages/test-and-package-stage.yml + - template: templates/stages/deploy-stage.yml diff --git a/.azure-pipelines/templates/stages/deploy-stage.yml b/.azure-pipelines/templates/stages/deploy-stage.yml index 1a65a1c3b..309c48c76 100644 --- a/.azure-pipelines/templates/stages/deploy-stage.yml +++ b/.azure-pipelines/templates/stages/deploy-stage.yml @@ -9,56 +9,6 @@ parameters: stages: - stage: Deploy jobs: - # This job relies on credentials used to publish the Certbot snaps. This - # credential file was created by running: - # - # snapcraft logout - # snapcraft login (provide the shared snapcraft credentials when prompted) - # snapcraft export-login --channels=beta,edge snapcraft.cfg - # - # Then the file was added as a secure file in Azure pipelines - # with the name snapcraft.cfg by following the instructions at - # https://docs.microsoft.com/en-us/azure/devops/pipelines/library/secure-files?view=azure-devops - # including authorizing the file in all pipelines as described at - # https://docs.microsoft.com/en-us/azure/devops/pipelines/library/secure-files?view=azure-devops#how-do-i-authorize-a-secure-file-for-use-in-all-pipelines. - # - # This file has a maximum lifetime of one year and the current - # file will expire on 2021-07-28 which is also tracked by - # https://github.com/certbot/certbot/issues/7931. The file will - # need to be updated before then to prevent automated deploys - # from breaking. - # - # Revoking these credentials can be done by changing the password of the - # account used to generate the credentials. See - # https://forum.snapcraft.io/t/revoking-exported-credentials/19031 for - # more info. - - job: publish_snap - pool: - vmImage: ubuntu-18.04 - variables: - - group: certbot-common - steps: - - bash: | - sudo apt-get update - sudo apt-get install -y --no-install-recommends snapd - sudo snap install --classic snapcraft - displayName: Install dependencies - - task: DownloadPipelineArtifact@2 - inputs: - artifact: snaps - path: $(Build.SourcesDirectory)/snap - displayName: Retrieve Certbot snaps - - task: DownloadSecureFile@1 - name: snapcraftCfg - inputs: - secureFile: snapcraft.cfg - - bash: | - mkdir -p .snapcraft - ln -s $(snapcraftCfg.secureFilePath) .snapcraft/snapcraft.cfg - for SNAP_FILE in snap/*.snap; do - snapcraft upload --release=${{ parameters.snapReleaseChannel }} "${SNAP_FILE}" - done - displayName: Publish to Snap store - job: publish_docker pool: vmImage: ubuntu-18.04