Comments (5)
In case it's useful, I recently started a new git module. It doesn't support push, but has a clean and simple foundation to add it.
https://daggerverse.dev/mod/github.com/shykes/git
from dagger.
@shykes Sounds good!
What do you think would be the best way to implement authentication?
GitHub supports http+token auth, but SSH is probably still the most common way to authenticate with Git. CI systems (like GHA) probably work better with API tokens.
from dagger.
I would start simple, and add a []SSHKey
field to the Repo
state, with assorted WithSSHKey
and WithSSHKeys
to add them. then a Push()
function that makes sure to write the ssh keys to the right place in the container, and calls git push
. Start with passing the argument as-is. Then, iterate from there.
from dagger.
Would it make sense to add WithSSHKey
to the Git
object instead (or as well) so they can be used to clone private repos as well?
from dagger.
Would it make sense to add
WithSSHKey
to theGit
object instead (or as well) so they can be used to clone private repos as well?
Yes that makes perfect sense.
from dagger.
Related Issues (20)
- 🐞 Dependence on rs/cors v1.10.0 introduces a denial-of-service risk
- One binary HOT 2
- Document Views HOT 2
- 🐞 Dagger doesn't fail when using `kube-pod` scheme if `kubectl` is not present
- ✨ [TypeScript SDK] Consider using ECMAScript Decorators HOT 1
- 🐞 git operations don't work if they need to use an http proxy
- 🐞 dagger CLI: no such file or directory
- Port not ready error when using --ports=8080:80 with dagger call build
- 🐞 unhandled errors in a TaskGroup HOT 4
- 🐞 New `--plain=progress` implementation swallows prints and logs from modules
- 🐞 Dagger does not seem to work with Istio
- 🐞 Python SDK creates invalid syntax HOT 3
- ✨ Templates for Daggerizing a project from `dagger init`
- 🐞 [v0.11.5] `/usr/local/bin/dumb-init` is not aarch64 format in ghcr.io/dagger/engine:v0.11.5 for linux/arm64 HOT 1
- 🐞 Secrets in Dockerfile not available HOT 1
- 🐞 Idempotency issue with `dagger develop`
- Don't reuse parent go.mod by default
- Go SDK: support embedding structs
- Document dag.Http and dag.Git HOT 2
- Support all OCI image fields
Recommend Projects
-
React
A declarative, efficient, and flexible JavaScript library for building user interfaces.
-
Vue.js
🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
-
Typescript
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
-
TensorFlow
An Open Source Machine Learning Framework for Everyone
-
Django
The Web framework for perfectionists with deadlines.
-
Laravel
A PHP framework for web artisans
-
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.
-
Visualization
Some thing interesting about visualization, use data art
-
Game
Some thing interesting about game, make everyone happy.
Recommend Org
-
Facebook
We are working to build community through open source technology. NB: members must have two-factor auth.
-
Microsoft
Open source projects and samples from Microsoft.
-
Google
Google ❤️ Open Source for everyone.
-
Alibaba
Alibaba Open Source for everyone
-
D3
Data-Driven Documents codes.
-
Tencent
China tencent open source team.
from dagger.