diff --git a/.azure-pipelines/templates/stages/deploy-stage.yml b/.azure-pipelines/templates/stages/deploy-stage.yml index 4ae4c563e..88aeab60e 100644 --- a/.azure-pipelines/templates/stages/deploy-stage.yml +++ b/.azure-pipelines/templates/stages/deploy-stage.yml @@ -13,8 +13,8 @@ stages: # 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 + # (provide the shared snapcraft credentials when prompted) # # Then the file was added as a secure file in Azure pipelines # with the name snapcraft.cfg by following the instructions at @@ -24,7 +24,7 @@ stages: # https://docs.microsoft.com/en-us/azure/devops/pipelines/library/secure-files?view=azure-devops#q-how-do-i-authorize-a-secure-file-for-use-in-a-specific-pipeline. # # This file has a maximum lifetime of one year and the current - # file will expire on 2022-07-25 which is also tracked by + # file will expire on 2023-06-17 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. @@ -64,7 +64,7 @@ stages: secureFile: snapcraft.cfg - bash: | set -e - snapcraft login --with $(snapcraftCfg.secureFilePath) + export SNAPCRAFT_STORE_CREDENTIALS=$(cat $(snapcraftCfg.secureFilePath)) for SNAP_FILE in snap/*.snap; do tools/retry.sh eval snapcraft upload --release=${{ parameters.snapReleaseChannel }} "${SNAP_FILE}" done diff --git a/.gitignore b/.gitignore index d87bacc91..05e3cf47c 100644 --- a/.gitignore +++ b/.gitignore @@ -59,3 +59,4 @@ certbot-dns*/certbot-dns*_arm*.txt /certbot_amd64*.txt /certbot_arm*.txt certbot-dns*/snap +snapcraft.cfg