Commit Graph

1168 Commits

Author SHA1 Message Date
Sam Alba
03d58e074f cmd/input: changed list output based on feedback
Signed-off-by: Sam Alba <sam.alba@gmail.com>
2021-06-01 14:12:37 +02:00
Sam Alba
efb4ee209e cmd/up: disable output list when not a tty + better error handling
Signed-off-by: Sam Alba <sam.alba@gmail.com>
2021-05-31 18:25:58 +02:00
Sam Alba
571b5c8618 cmd/up: downgrade output list error from Fatal to Warning
Signed-off-by: Sam Alba <sam.alba@gmail.com>
2021-05-31 18:04:48 +02:00
Sam Alba
ec4730708d cue fmt
Signed-off-by: Sam Alba <sam.alba@gmail.com>
2021-05-31 16:42:01 +02:00
Sam Alba
d6b6142065 cmd/up: show outputs at the end of the config execution
Signed-off-by: Sam Alba <sam.alba@gmail.com>
2021-05-31 16:14:57 +02:00
Sam Alba
44a919e7f8 test: implemented tests for output list
Signed-off-by: Sam Alba <sam.alba@gmail.com>
2021-05-31 15:56:58 +02:00
Sam Alba
270d8b4775 cmd/output: implemented list --all
Signed-off-by: Sam Alba <sam.alba@gmail.com>
2021-05-31 15:55:44 +02:00
Sam Alba
1a59c9c40b cmd/output: added support for listing outputs
Signed-off-by: Sam Alba <sam.alba@gmail.com>
2021-05-31 15:25:02 +02:00
Sam Alba
6e3ec02ceb added support for output scanning
Signed-off-by: Sam Alba <sam.alba@gmail.com>
2021-05-31 15:24:42 +02:00
Sam Alba
21b259fc86 stdlib/aws/s3: removed trailing \\n
Signed-off-by: Sam Alba <sam.alba@gmail.com>
2021-05-31 15:23:55 +02:00
Sam Alba
e86963eea3 examples/simple-s3: added output annotation
Signed-off-by: Sam Alba <sam.alba@gmail.com>
2021-05-31 15:23:41 +02:00
Sam Alba
91c2acd564 cmd/input: list filters out \\n
Signed-off-by: Sam Alba <sam.alba@gmail.com>
2021-05-31 15:21:39 +02:00
Guillaume de Rouville
d74efa2420 Fix index out of bound for Dagger compute inputs + add tests ["input-dir", "input-git", input-string"]
Signed-off-by: Guillaume de Rouville <guillaume.derouville@gmail.com>
2021-05-31 12:11:54 +02:00
Sam Alba
ba5078ef26 cmd/dagger: share code for input/output management
Signed-off-by: Sam Alba <sam.alba@gmail.com>
2021-05-31 11:08:26 +02:00
Andrea Luzzardi
5ab66cc5ef
Merge pull request #528 from TomChv/fix-sops-secrets 2021-05-29 11:00:37 -07:00
Tom Chauveau
242b61972c Update sops version to fix CI
Signed-off-by: Tom Chauveau <tom.chauveau@epitech.eu>
2021-05-29 19:40:01 +02:00
Tom Chauveau
4b6315e2fc Handle fingerprint option for auth
Signed-off-by: Tom Chauveau <tom.chauveau@epitech.eu>
2021-05-29 18:29:39 +02:00
Andrea Luzzardi
ebbc9707ec automatically redact secrets from logs
Signed-off-by: Andrea Luzzardi <aluzzardi@gmail.com>
2021-05-29 02:18:01 -07:00
Andrea Luzzardi
7ec90a6155
Merge pull request #497 from myitcv/put_fullop_behind_build_attribute
stdlib: put full definition of #Op behind a build attribute
2021-05-28 23:48:39 -07:00
Andrea Luzzardi
4dd14fb42a
Merge pull request #524 from aluzzardi/input-edit
dagger input edit
2021-05-28 18:57:03 -07:00
Andrea Luzzardi
9deb80c487 dagger input edit
See and edit all the inputs in bulk using $EDITOR

Signed-off-by: Andrea Luzzardi <aluzzardi@gmail.com>
2021-05-28 18:02:12 -07:00
Andrea Luzzardi
d9c1e6d57e
Merge pull request #523 from aluzzardi/input-dir-exclude
add support for excludes in input dir
2021-05-28 16:47:51 -07:00
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
22042316be
Merge pull request #521 from dagger/fix-netlify-regression
stdlib: netlify: fix regression of trailing new lines
2021-05-28 14:44:44 -07:00
Andrea Luzzardi
59695f632a stdlib: netlify: fix regression of trailing new lines
Signed-off-by: Andrea Luzzardi <aluzzardi@gmail.com>
2021-05-28 14:16:25 -07:00
Andrea Luzzardi
2f9a5df397
Merge pull request #512 from TomChv/buildkit-secrets
Buildkit secrets supports
2021-05-28 14:13:35 -07:00
Andrea Luzzardi
868fd018f4 tests: fix remaining tests due to secrets
Signed-off-by: Andrea Luzzardi <aluzzardi@gmail.com>
2021-05-28 14:00:27 -07:00
Andrea Luzzardi
1e1b28e1de tests: examples/react tests to use native secrets
Signed-off-by: Andrea Luzzardi <aluzzardi@gmail.com>
2021-05-28 13:33:59 -07:00
Andrea Luzzardi
e045366e82
Merge pull request #520 from aluzzardi/fix-cgo
fix build for non-cgo
2021-05-28 12:08:52 -07:00
Andrea Luzzardi
b1c50671b3 fix build for non-cgo
- use mitchellh/go-homedir rather than os/user to work on non cgo
  enabled builds (e.g. release binaries)
- updated Makefile to disable cgo on dev binaries

Fixes #519

Signed-off-by: Andrea Luzzardi <aluzzardi@gmail.com>
2021-05-28 11:48:50 -07:00
Sam Alba
8d5c3f4f0f
Merge pull request #518 from samalba/fix-version
goreleaser: fixed version
2021-05-28 04:57:17 -07:00
Sam Alba
55355dfd32 goreleaser: fixed version
Signed-off-by: Sam Alba <sam.alba@gmail.com>
2021-05-28 13:52:56 +02:00
Andrea Luzzardi
28fd9c341f stdlib: update gcp to use secrets
Signed-off-by: Andrea Luzzardi <aluzzardi@gmail.com>
2021-05-27 19:18:17 -07:00
Andrea Luzzardi
f2819dc1a5 ci: import dagger key
Signed-off-by: Andrea Luzzardi <aluzzardi@gmail.com>
2021-05-27 19:18:17 -07:00
Tom Chauveau
5fb7ded2d5 update stdlib tests that use secrets
Signed-off-by: Tom Chauveau <tom.chauveau@epitech.eu>
2021-05-27 19:18:17 -07:00
Andrea Luzzardi
40d4c95bff aws: use secrets
Signed-off-by: Andrea Luzzardi <aluzzardi@gmail.com>
2021-05-27 19:14:08 -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
Andrea Luzzardi
5b9fcc9e3b
Merge pull request #517 from SvenDowideit/idk
I'm betting this is a minor spelling thing :)
2021-05-27 17:50:59 -07:00
Sven Dowideit
bca143c1da I'm betting this is a minor spelling thing :)
Signed-off-by: Sven Dowideit <SvenDowideit@home.org.au>
2021-05-28 08:52:30 +10:00
Andrea Luzzardi
15f4c4877d
Merge pull request #516 from aluzzardi/fix-doc-redirect
docs: fix version redirect
2021-05-27 15:14:37 -07:00
Andrea Luzzardi
cb23fa872a docs: fix version redirect
Signed-off-by: Andrea Luzzardi <aluzzardi@gmail.com>
2021-05-27 15:06:26 -07:00
Andrea Luzzardi
65da2f1c59
Merge pull request #515 from aluzzardi/secret-term-fix-windows
secret: fix terminal prompt for windows
2021-05-27 14:28:22 -07:00
Andrea Luzzardi
b55452a403
Merge pull request #513 from slumbering/500-docs-selector
display the right option from select + update logo
2021-05-27 14:28:11 -07:00
Andrea Luzzardi
99cf7d0ae0 secret: fix terminal prompt for windows
Signed-off-by: Andrea Luzzardi <aluzzardi@gmail.com>
2021-05-27 14:08:49 -07:00
Andrea Luzzardi
70c1e4fa36
Merge pull request #510 from dagger/dependabot/go_modules/filippo.io/age-1.0.0-rc.2
build(deps): bump filippo.io/age from 1.0.0-rc.1 to 1.0.0-rc.2
2021-05-27 13:59:22 -07:00
dependabot[bot]
e19e0fb2c8 build(deps): bump filippo.io/age from 1.0.0-rc.1 to 1.0.0-rc.2
Bumps [filippo.io/age](https://github.com/FiloSottile/age) from 1.0.0-rc.1 to 1.0.0-rc.2.
- [Release notes](https://github.com/FiloSottile/age/releases)
- [Commits](https://github.com/FiloSottile/age/compare/v1.0.0-rc.1...v1.0.0-rc.2)

Signed-off-by: dependabot[bot] <support@github.com>
2021-05-27 13:48:46 -07:00
Andrea Luzzardi
9ba1912799
Merge pull request #509 from dagger/dependabot/go_modules/cuelang.org/go-0.4.0
build(deps): bump cuelang.org/go from 0.4.0-beta.1 to 0.4.0
2021-05-27 13:47:52 -07:00
dependabot[bot]
f70065ddc1 build(deps): bump cuelang.org/go from 0.4.0-beta.1 to 0.4.0
Bumps cuelang.org/go from 0.4.0-beta.1 to 0.4.0.

Signed-off-by: dependabot[bot] <support@github.com>
2021-05-27 13:38:19 -07:00
Andrea Luzzardi
792dcacdff
Merge pull request #514 from samalba/up-check-input
Up check input
2021-05-27 13:31:35 -07:00
Sam Alba
80e1208474 cmd/up: added support for checking for user inputs concreteness before the running the config
Signed-off-by: Sam Alba <sam.alba@gmail.com>
2021-05-27 18:46:54 +02:00