felangel / mason

Tools which allow developers to create and consume reusable templates called bricks.
https://docs.brickhub.dev
986 stars 99 forks source link

feat: Allow login in CI systems (non-interactive shell) #1426

Closed Peetee06 closed 2 months ago

Peetee06 commented 2 months ago

Description

In order to continuously publish mason bricks I would like to be able to login to mason in a non-interactive shell.
I've tried:

Allowing to pass the email and password as arguments would do the trick.

I'd be happy to contribute myself :)

felangel commented 2 months ago

Hi @Peetee06 👋

You can login on your machine and upload your credentials to a secret manager which you then use in ci. See https://workflows.vgv.dev/docs/workflows/mason_publish for an example.

Peetee06 commented 2 months ago

@felangel awesome, I'll try the VGV workflow! Thank you very much! 🦾

felangel commented 2 months ago

@felangel awesome, I'll try the VGV workflow! Thank you very much! 🦾

No problem! Closing this for now but feel free to comment if you have any trouble and I’m happy to help!