Skip to content

Commit 01e7f0b

Browse files
committed
Revert snap publishing to use SNAPCRAFT_LOGIN_FILE with snapcraft 3.8
The cibuilds/snapcraft:stable image uses snapcraft 3.8, which requires SNAPCRAFT_LOGIN_FILE (base64-encoded) and `snapcraft push`. The previous changes to use SNAPCRAFT_STORE_CREDENTIALS, pip3, and `snapcraft upload` are incompatible with this image version.
1 parent 60096db commit 01e7f0b

1 file changed

Lines changed: 5 additions & 6 deletions

File tree

.circleci/config.yml

Lines changed: 5 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -264,12 +264,11 @@ jobs:
264264
- run:
265265
name: Publish to store
266266
command: |
267-
# The cibuilds/snapcraft:stable image is archived and has a pre-7 version of snapcraft.
268-
# Upgrade to snapcraft 7+ which reads SNAPCRAFT_STORE_CREDENTIALS env var automatically.
269-
# To refresh credentials: run `snapcraft export-login --snaps=circleci --channels=stable -`
270-
# and store the output as SNAPCRAFT_STORE_CREDENTIALS in CircleCI project settings.
271-
pip3 install --upgrade snapcraft
272-
snapcraft upload *.snap --release stable
267+
# Credentials are read from the SNAPCRAFT_LOGIN_FILE env var (base64-encoded).
268+
# To refresh: run `snapcraft login` and `snapcraft export-login creds`
269+
# inside cibuilds/snapcraft:stable, then `cat creds | base64 | tr -d '\n'`
270+
# and store the output as SNAPCRAFT_LOGIN_FILE in CircleCI project settings.
271+
snapcraft push *.snap --release stable
273272
274273
chocolatey-deploy:
275274
executor: windows/default

0 commit comments

Comments
 (0)