Solomon Hykes
d7a805f42b
stdlib: move all imports to alpha.dagger.io
...
Signed-off-by: Solomon Hykes <solomon@dagger.io>
2021-06-25 10:31:22 +00:00
Sam Alba
af82c2c910
docs: adds package description to the stdlib Index
...
Signed-off-by: Sam Alba <sam.alba@gmail.com>
2021-06-23 11:05:58 +02:00
Solomon Hykes
53f4ef049a
stdlib: dagger.#Output
...
Signed-off-by: Solomon Hykes <solomon@dagger.io>
2021-06-21 14:47:45 +02:00
Solomon Hykes
8383efdba6
stdlib: dagger.#Input
...
Signed-off-by: Solomon Hykes <solomon@dagger.io>
2021-06-21 14:47:45 +02:00
Sam Alba
9281967e16
stdlib: added package doc strings
...
Signed-off-by: Sam Alba <sam.alba@gmail.com>
2021-06-15 10:46:56 +02:00
Andrea Luzzardi
9c0e2d1d95
buildkit secrets support
...
- Secrets are never exposed in plaintext in the Cue tree. `dagger query`
won't dump secrets anymore, Cue errors won't contain them either.
- BuildKit-native secrets support through a new `mount` type. This
ensures secrets will never be part of containerd layers, buildkit
cache and generally speaking will never be saved to disk in plaintext.
- Updated netlify as an example
- Added tests
- Changed the Cue definition of a secret to:
```
@dagger(secret)
id: string
}
```
This is to ensure both that setting the wrong input type on a secret
(e.g. `dagger input text`) will fail, and attempting to misuse the
secret (e.g. interpolating, passing as an env variable, etc) will also
fail properly.
Signed-off-by: Andrea Luzzardi <aluzzardi@gmail.com>
2021-05-27 19:14:08 -07:00
Sam Alba
7484df45cd
clean up comments
...
Signed-off-by: Sam Alba <sam.alba@gmail.com>
2021-05-21 16:56:30 -07:00
Sam Alba
85cc9abb93
stdlib: adapted lib to new input spec
...
Signed-off-by: Sam Alba <sam.alba@gmail.com>
2021-05-21 16:04:02 -07:00
Solomon Hykes
b526093929
stdlib: simpler and cleaner performance workaround
...
Signed-off-by: Solomon Hykes <solomon@dagger.io>
2021-05-13 22:36:06 -07:00
Solomon Hykes
98b3951c73
stdlib: os package
...
Signed-off-by: Solomon Hykes <solomon@dagger.io>
2021-05-11 17:32:50 -07:00
Frederick F. Kautz IV
0458c0a838
* add support for --input-file in dagger compute
...
* secrets now supports bytes
* error reporting for unhandled content data types in WriteFile
Signed-off-by: Frederick F. Kautz IV <fkautz@alumni.cmu.edu>
2021-04-11 16:18:59 -07:00
Solomon Hykes
6673ae69b3
stdlib: rename dagger.io/llb to dagger.io/dagger/op
...
Signed-off-by: Solomon Hykes <sh.github.6811@hykes.org>
2021-04-06 10:28:40 -07:00
Andrea Luzzardi
c16455249e
cue files: #compute -> #up
...
Signed-off-by: Andrea Luzzardi <aluzzardi@gmail.com>
2021-04-02 16:08:15 -07:00
Andrea Luzzardi
8a4aa4d42b
pipeline: #compute -> #up
...
Signed-off-by: Andrea Luzzardi <aluzzardi@gmail.com>
2021-04-02 16:08:15 -07:00
Andrea Luzzardi
1a3dc3debc
dagger spec: fix Artifact definition
...
Signed-off-by: Andrea Luzzardi <aluzzardi@gmail.com>
2021-03-31 14:20:31 -07:00
Solomon Hykes
54a2fe4393
stdlib package: llb
...
Signed-off-by: Solomon Hykes <sh.github.6811@hykes.org>
2021-03-15 22:25:18 -07:00
Tony Worm
472070d7f8
add #WriteFile and #Mkdir to #Op
...
Signed-off-by: Tony Worm <tony@hofstadter.io>
2021-03-15 22:08:54 -07:00
Solomon Hykes
6460a5c9fc
Rename dagger.#Dir to dagger.#Artifact
...
Signed-off-by: Solomon Hykes <sh.github.6811@hykes.org>
2021-03-13 00:11:59 -08:00
Andrea Luzzardi
c35eca99e1
push container support
...
Signed-off-by: Andrea Luzzardi <aluzzardi@gmail.com>
2021-03-11 16:41:19 -08:00
Andrea Luzzardi
db2184262c
Add dagger.#Secret to dagger spec.
...
This currently does nothing and is only useful for flagging secrets.
Signed-off-by: Andrea Luzzardi <aluzzardi@gmail.com>
2021-03-10 15:14:39 -08:00
Tony Worm
3e5df44a1d
cue/fmt: stdlib/dagger
...
Signed-off-by: Tony Worm <tony@hofstadter.io>
2021-03-08 11:11:29 -05:00
Tony Worm
3a7a21326a
fixes perf with dogfood
...
Signed-off-by: Tony Worm <tony@hofstadter.io>
2021-03-08 10:09:21 -05:00
Solomon Hykes
7a77466a66
DX: change "#dagger: compute: " to "#compute: "
...
Signed-off-by: Solomon Hykes <sh.github.6811@hykes.org>
2021-03-06 19:39:22 -08:00
Sam Alba
aef0139920
implemented tmpfs mount test
...
Signed-off-by: Sam Alba <sam.alba@gmail.com>
2021-03-04 14:06:48 -08:00
Sam Alba
bac3ff4f68
stdlib: cuefmt
...
Signed-off-by: Sam Alba <sam.alba@gmail.com>
2021-03-03 18:08:43 -08:00
Sam Alba
ee7bb3c3f5
implemented "write-file" and "mkdir" ops
...
Signed-off-by: Sam Alba <sam.alba@gmail.com>
2021-03-03 17:24:21 -08:00
Andrea Luzzardi
bc2dae7e32
docker build support
...
Signed-off-by: Andrea Luzzardi <aluzzardi@gmail.com>
2021-02-22 14:14:51 -08:00
Andrea Luzzardi
5ba6dd1617
embedded stdlib
...
This PR embeds the stdlib into the dagger binary itself for convenience.
Long term we will want to source the stdlib directly from git.
- Updated go to 1.16 to use the new built-in embedding functionality
- The `stdlib` go package now contains an embed of the stdlib
Signed-off-by: Andrea Luzzardi <aluzzardi@gmail.com>
2021-02-17 10:08:56 -08:00