Commit Graph

11 Commits

Author SHA1 Message Date
Andrea Luzzardi
b627b4bc88 add support for excludes in input dir
This adds support for `--include` and `--exclude` for directory inputs.

For instance, this is what you would want to use when passing dagger
repository as an input:

```
inputs:
    repository:
        dir:
            path: .
            exclude:
                - '**/node_modules'
                - cmd/dagger/dagger
                - cmd/dagger/dagger-debug
```

Signed-off-by: Andrea Luzzardi <aluzzardi@gmail.com>
2021-05-28 16:22:32 -07: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
Tom Chauveau
e366773dc0 Rename tests with new naming convention and update tests lists
Signed-off-by: Tom Chauveau <tom.chauveau@epitech.eu>
2021-04-24 22:33:52 +02:00
Sam Alba
468ac1220a added comment about always flag + cue fmt
Signed-off-by: Sam Alba <sam.alba@gmail.com>
2021-04-15 12:34:15 -07:00
Sam Alba
cfa9f08bc9 tests: added test to ensure an op.#Exec with no cache will not execute twice
Signed-off-by: Sam Alba <sam.alba@gmail.com>
2021-04-15 12:10:14 -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
b229119a3d tests: split integration tests
Signed-off-by: Andrea Luzzardi <aluzzardi@gmail.com>
2021-04-01 18:46:08 -07:00
Andrea Luzzardi
8917017e16 tests: move input inside compute
Signed-off-by: Andrea Luzzardi <aluzzardi@gmail.com>
2021-03-31 19:15:48 -07: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
Andrea Luzzardi
89c7136f75 tests: move tests top-level
Signed-off-by: Andrea Luzzardi <aluzzardi@gmail.com>
2021-02-03 15:02:43 -08:00