mirror of
https://github.com/certbot/certbot.git
synced 2026-08-01 02:35:06 +02:00
Change snapcraft authentication to use SNAPCRAFT_STORE_CREDENTIALS (#9326)
* try the easy thing of just doing what the error message says * temporarily add deploy stage to extended tests to see if it uploads properly * follow instructions on https://forum.snapcraft.io/t/snapcraft-authentication-options/30473 * just run the packaging jobs for speed * fix formatting * import changes from test- branch and revert temporary changes * Update instructions in deploy-stage.yml
This commit is contained in:
@@ -13,8 +13,8 @@ stages:
|
|||||||
# credential file was created by running:
|
# credential file was created by running:
|
||||||
#
|
#
|
||||||
# snapcraft logout
|
# snapcraft logout
|
||||||
# snapcraft login (provide the shared snapcraft credentials when prompted)
|
|
||||||
# snapcraft export-login --channels=beta,edge snapcraft.cfg
|
# 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
|
# Then the file was added as a secure file in Azure pipelines
|
||||||
# with the name snapcraft.cfg by following the instructions at
|
# 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.
|
# 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
|
# 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
|
# https://github.com/certbot/certbot/issues/7931. The file will
|
||||||
# need to be updated before then to prevent automated deploys
|
# need to be updated before then to prevent automated deploys
|
||||||
# from breaking.
|
# from breaking.
|
||||||
@@ -64,7 +64,7 @@ stages:
|
|||||||
secureFile: snapcraft.cfg
|
secureFile: snapcraft.cfg
|
||||||
- bash: |
|
- bash: |
|
||||||
set -e
|
set -e
|
||||||
snapcraft login --with $(snapcraftCfg.secureFilePath)
|
export SNAPCRAFT_STORE_CREDENTIALS=$(cat $(snapcraftCfg.secureFilePath))
|
||||||
for SNAP_FILE in snap/*.snap; do
|
for SNAP_FILE in snap/*.snap; do
|
||||||
tools/retry.sh eval snapcraft upload --release=${{ parameters.snapReleaseChannel }} "${SNAP_FILE}"
|
tools/retry.sh eval snapcraft upload --release=${{ parameters.snapReleaseChannel }} "${SNAP_FILE}"
|
||||||
done
|
done
|
||||||
|
|||||||
@@ -59,3 +59,4 @@ certbot-dns*/certbot-dns*_arm*.txt
|
|||||||
/certbot_amd64*.txt
|
/certbot_amd64*.txt
|
||||||
/certbot_arm*.txt
|
/certbot_arm*.txt
|
||||||
certbot-dns*/snap
|
certbot-dns*/snap
|
||||||
|
snapcraft.cfg
|
||||||
|
|||||||
Reference in New Issue
Block a user