Coder Social home page Coder Social logo

Comments (4)

jimafisk avatar jimafisk commented on June 12, 2024

Re-exported snapcraft credentials locally per #192 (comment):

snapcraft export-login --snaps plenti -

Then on GitHub, went to: settings > security > secrets and variables > actions > repository secrets and updated SNAPCRAFT_TOKEN

Then I tried to re-run the existing job and the "snapcraft login" step throws:

Starting Snapcraft 7.3.2
Logging execution to '/home/runner/.local/state/snapcraft/log/snapcraft-20230603-16052[8](https://github.com/plentico/plenti/actions/runs/5164383127/jobs/9303473048#step:6:9).113237.log'
--with is no longer supported, export the auth to the environment variable 'SNAPCRAFT_STORE_CREDENTIALS' instead
Cannot parse config: File contains no section headers.
file: '<string>', line: 1
'***\n'
Full execution log: '/home/runner/.local/state/snapcraft/log/snapcraft-20230603-160528.[11](https://github.com/plentico/plenti/actions/runs/5164383127/jobs/9303473048#step:6:12)3237.log'
Error: Process completed with exit code 1.

from plenti.

jimafisk avatar jimafisk commented on June 12, 2024

Looks like we're using syntax only support by snapcraft 6.x so we should upgrade to newer syntax supported by 7.x:

from plenti.

jimafisk avatar jimafisk commented on June 12, 2024

New failure (Ensure the keyring is working or SNAPCRAFT_STORE_CREDENTIALS is correctly exported into the environment):

⨯ release failed after 3m2s                error=snapcraft packages: failed to publish artifacts: failed to push dist/plenti_0.6.15_linux_amd64.snap package: exit status 1: Starting Snapcraft 7.3.2
Logging execution to '/home/runner/.local/state/snapcraft/log/snapcraft-20230603-163444.111833.log'
craft-store error: No keyring found to store or retrieve credentials from.
Recommended resolution: Ensure the keyring is working or SNAPCRAFT_STORE_CREDENTIALS is correctly exported into the environment
For more information, check out: https://snapcraft.io/docs/snapcraft-authentication
Full execution log: '/home/runner/.local/state/snapcraft/log/snapcraft-20230603-163444.111833.log'

Error: The process '/opt/hostedtoolcache/goreleaser-action/1.18.2/x64/goreleaser' failed with exit code 1

from plenti.

jimafisk avatar jimafisk commented on June 12, 2024

The fix was just to set SNAPCRAFT_STORE_CREDENTIALS: ${{ secrets.snapcraft_token }} directly in the step where we're calling Goreleaser and eliminating the "Snapcraft Login" step we were using previously.

from plenti.

Related Issues (20)

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. 📊📈🎉

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google ❤️ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.