GitHub actions #198
david-r-cox
started this conversation in
Show and tell
Replies: 0 comments
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Uh oh!
There was an error while loading. Please reload this page.
-
I put together a GitHub action for publishing to dbdev. There's probably a cleaner way to do this but in case anyone finds it helpful:
The action works around two current hurdles using dbdev in CI:
dbdev login
using environment variables, as it expects an interactive input. Passing the token via pipe (echo $DBDEV_TOKEN | dbdev login
) doesn't work either.Looking at the login issue again after stepping away for a bite, dbdev writes the token to
.dbdev/credentials.toml
. Writing this file directly without invokingdbdev login
might be a better solution, but I haven't tested it.This GitHub action uses a Nix to install dbdev and its dependencies. Once NixOS/nixpkgs#334750 lands
nix build github:integrated-reasoning/nixpkgs/dbdev#dbdev
can be replaced withnix build nixpkgs#dbdev
.Beta Was this translation helpful? Give feedback.
All reactions