diff --git a/.azure-pipelines/advanced.yml b/.azure-pipelines/advanced.yml index 8436e3c4e..e26d5a402 100644 --- a/.azure-pipelines/advanced.yml +++ b/.azure-pipelines/advanced.yml @@ -19,4 +19,7 @@ stages: - template: templates/standard-tests-jobs.yml - template: templates/extended-tests-jobs.yml - template: templates/packaging-jobs.yml + - stage: Deploy + jobs: + - template: templates/deploy-jobs.yml - template: templates/notify-failure-steps.yml diff --git a/.azure-pipelines/release.yml b/.azure-pipelines/release.yml index a8fc20689..55b685d96 100644 --- a/.azure-pipelines/release.yml +++ b/.azure-pipelines/release.yml @@ -14,4 +14,7 @@ stage: - template: templates/extended-tests-jobs.yml - template: templates/packaging-jobs.yml - template: templates/changelog-jobs.yml + - stage: Deploy + jobs: + - template: templates/deploy-jobs.yml - template: templates/notify-failure-steps.yml diff --git a/.azure-pipelines/templates/deployment-jobs.yml b/.azure-pipelines/templates/deployment-jobs.yml new file mode 100644 index 000000000..b4de97f45 --- /dev/null +++ b/.azure-pipelines/templates/deployment-jobs.yml @@ -0,0 +1,22 @@ +jobs: + - job: publish_snap + pool: + vmImage: ubuntu-18.04 + steps: + - bash: | + sudo apt-get update + sudo apt-get install -y --no-install-recommends snap + sudo snap install --classic snapcraft + displayName: Install dependencies + - bash: | + mkdir .snapcraft + echo $(SNAPCRAFT_LOGIN_FILE) | base64 --decode --ignore-garbage > .snapcraft/snapcraft.cfg + displayName: Prepare login to Snap store + - task: DownloadPipelineArtifact@2 + inputs: + artifact: snap + path: $(Build.SourcesDirectory)/snap + displayName: Retrieve Certbot snap + - bash: | + snapcraft push --release=edge snap/*.snap + displayName: Publish to Snap store diff --git a/snap/snapcraft.yaml b/snap/snapcraft.yaml index 2e4f68c00..9c6a519a7 100644 --- a/snap/snapcraft.yaml +++ b/snap/snapcraft.yaml @@ -1,4 +1,4 @@ -name: certbot +name: adferrand-certbot summary: Automatically configure HTTPS using Let's Encrypt description: | The objective of Certbot, Let's Encrypt, and the ACME (Automated