Commit Graph

627 Commits

Author SHA1 Message Date
Andrea Luzzardi
33d5add54b deployment API cleanup
The API was a bit confusing with code mixing the usage of Deployment and
DeploymentState.

This change marks a clear separation:

- Client is the only piece of code manipulating *Deployment
- CLI commands can manipulate DeploymentState objects and pass them to
  Client

Signed-off-by: Andrea Luzzardi <aluzzardi@gmail.com>
2021-04-02 15:30:38 -07:00
Andrea Luzzardi
59d934fbf0
Merge pull request #262 from dagger/fix-sops-dependency
go.mod: fix sops dependency
2021-04-02 15:22:52 -07:00
Andrea Luzzardi
6d01389e16 go.mod: fix sops dependency
Taken from https://github.com/dagger/dagger/pull/239

Signed-off-by: Andrea Luzzardi <aluzzardi@gmail.com>
2021-04-02 15:08:48 -07:00
Andrea Luzzardi
6820b99637
Merge pull request #260 from dagger/golangci-gh-action
ci: use golangci github action
2021-04-02 14:30:37 -07:00
Andrea Luzzardi
5b9ee0ed32 linter: replace deprecated scopelint with exportloopref
Signed-off-by: Andrea Luzzardi <aluzzardi@gmail.com>
2021-04-02 14:29:17 -07:00
Andrea Luzzardi
2657a516b3 fix lint error
Signed-off-by: Andrea Luzzardi <aluzzardi@gmail.com>
2021-04-02 14:29:17 -07:00
Andrea Luzzardi
7da33d00fc ci: use golangci github action
Signed-off-by: Andrea Luzzardi <aluzzardi@gmail.com>
2021-04-02 14:29:17 -07:00
Andrea Luzzardi
abc75b4520
Merge pull request #259 from verdverm/update-cue-v0.3.0
update CUE to v0.3.0
2021-04-02 14:24:57 -07:00
Sam Alba
11825932cc
Merge pull request #249 from dagger/integration-test-split
tests: split integration tests
2021-04-02 13:19:12 -07:00
Tony Worm
ff60bd0406 update CUE to v0.3.0
Signed-off-by: Tony Worm <tony@hofstadter.io>
2021-04-02 16:02:44 -04:00
Andrea Luzzardi
13cee6e718
Merge pull request #258 from dagger/dependabot/docker/golang-1.16.3-alpine
build(deps): bump golang from 1.16.2-alpine to 1.16.3-alpine
2021-04-02 09:58:07 -07:00
dependabot[bot]
d85527ede2
build(deps): bump golang from 1.16.2-alpine to 1.16.3-alpine
Bumps golang from 1.16.2-alpine to 1.16.3-alpine.

Signed-off-by: dependabot[bot] <support@github.com>
2021-04-02 07:16:24 +00:00
Andrea Luzzardi
5ae5b1bb50 fix dagger input dir
Signed-off-by: Andrea Luzzardi <aluzzardi@gmail.com>
2021-04-01 23:17:38 -07:00
Andrea Luzzardi
526d3af364 state: store in ~/.dagger
Signed-off-by: Andrea Luzzardi <aluzzardi@gmail.com>
2021-04-01 23:00:30 -07:00
Andrea Luzzardi
4c93f100a0
Merge pull request #252 from dagger/fix-store-root
store: fix root directory
2021-04-01 22:24:57 -07:00
Andrea Luzzardi
d848afe7a9 store: fix root directory
Signed-off-by: Andrea Luzzardi <aluzzardi@gmail.com>
2021-04-01 22:16:29 -07:00
Solomon Hykes
236283ff8f Docs: remove old tutorial, list examples upfront
Signed-off-by: Solomon Hykes <sh.github.6811@hykes.org>
2021-04-01 22:16:25 -07:00
Solomon Hykes
7241c9a675 New example: hello world
Signed-off-by: Solomon Hykes <sh.github.6811@hykes.org>
2021-04-01 20:34:47 -07:00
Solomon Hykes
3168129611 Example: docker (not yet documented)
Signed-off-by: Solomon Hykes <sh.github.6811@hykes.org>
2021-04-01 20:34:47 -07:00
Solomon Hykes
ca4da5e472 Docs: update and polish kubernetes-app and monitoring examples
Signed-off-by: Solomon Hykes <sh.github.6811@hykes.org>
2021-04-01 20:34:31 -07:00
Andrea Luzzardi
98c4dc790c tests: SUITE=all, SUITE=name, SUITE=-name
Signed-off-by: Andrea Luzzardi <aluzzardi@gmail.com>
2021-04-01 19:13:08 -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
896d303f4a
Merge pull request #247 from dagger/cli-new-plan-git
Cli new plan git
2021-04-01 18:13:24 -07:00
Solomon Hykes
0a28f04857 Don't print the deployment state at the end of each command
Signed-off-by: Solomon Hykes <sh.github.6811@hykes.org>
2021-04-01 17:54:21 -07:00
Solomon Hykes
67af849dd9 Change default loglevel to INFO (from DEBUG)
Signed-off-by: Solomon Hykes <sh.github.6811@hykes.org>
2021-04-01 17:49:15 -07:00
Solomon Hykes
0352517f57 Fix linter
Signed-off-by: Solomon Hykes <sh.github.6811@hykes.org>
2021-04-01 17:49:15 -07:00
Sam Alba
c3846100b3 cmd/plan: implemented git and dir
Signed-off-by: Sam Alba <sam.alba@gmail.com>
2021-04-01 17:46:43 -07:00
Sam Alba
6cbea26f7f cmd/plan/git: allow for optional ref (default to HEAD)
Signed-off-by: Sam Alba <sam.alba@gmail.com>
2021-04-01 17:46:43 -07:00
Sam Alba
fb9aae38ef cmd/new: added support for plan-git option
Signed-off-by: Sam Alba <sam.alba@gmail.com>
2021-04-01 17:46:42 -07:00
Sam Alba
530e6dc876
Merge pull request #243 from dagger/cli-tests
tests: add basic cli tests
2021-04-01 17:46:01 -07:00
Andrea Luzzardi
324a1c2992 examples: kubernetes-aws: fix cuefmt
Signed-off-by: Andrea Luzzardi <aluzzardi@gmail.com>
2021-04-01 16:49:58 -07:00
Andrea Luzzardi
429820036f tests: add basic cli tests
Signed-off-by: Andrea Luzzardi <aluzzardi@gmail.com>
2021-04-01 16:46:05 -07:00
Solomon Hykes
48e8b200ae Docs: update and polish "Kubernetes on AWS" example
Signed-off-by: Solomon Hykes <sh.github.6811@hykes.org>
2021-04-01 22:37:14 +00:00
Solomon Hykes
e701de01c1 Improve react example
Signed-off-by: Solomon Hykes <sh.github.6811@hykes.org>
2021-04-01 14:46:39 -07:00
Solomon Hykes
991d2f4e52 Docs: update react-netlify example for new CLI
Signed-off-by: Solomon Hykes <sh.github.6811@hykes.org>
2021-04-01 14:46:39 -07:00
Sam Alba
4dcddc68c3
Merge pull request #229 from dagger/cli-new-name
Fix "dagger new --name"
2021-04-01 11:30:22 -07:00
Sam Alba
29cad95f1d cmd/new: implemented --plan-dir
Signed-off-by: Sam Alba <sam.alba@gmail.com>
2021-04-01 11:12:44 -07:00
Sam Alba
b9b195b70f cmd/new: implemented optional arg to specify name, forbid usage of -d option
Signed-off-by: Sam Alba <sam.alba@gmail.com>
2021-04-01 10:49:17 -07:00
Sam Alba
c79d18d8b2
Merge pull request #238 from dagger/test-reorg
Integration tests re-org
2021-04-01 10:26:20 -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
Andrea Luzzardi
4b682a8e3f tests: reorganize test suite
Signed-off-by: Andrea Luzzardi <aluzzardi@gmail.com>
2021-03-31 19:04:37 -07:00
Andrea Luzzardi
93296fa358 tests: move llb tests into tests/llb
Signed-off-by: Andrea Luzzardi <aluzzardi@gmail.com>
2021-03-31 18:49:53 -07:00
Andrea Luzzardi
e0afc6304d
Merge pull request #235 from dagger/cli-query
Implemented cli query command
2021-03-31 18:41:01 -07:00
Andrea Luzzardi
f1bf58ed86 tests: fix invalid dockerbuild test
Signed-off-by: Andrea Luzzardi <aluzzardi@gmail.com>
2021-03-31 18:34:23 -07:00
Sam Alba
3aec0337d2 tests: fixed invalid test
Signed-off-by: Sam Alba <sam.alba@gmail.com>
2021-03-31 18:10:20 -07:00
Sam Alba
ac5c8417d2 cmd: implemented query to be close to cue eval
Signed-off-by: Sam Alba <sam.alba@gmail.com>
2021-03-31 16:32:48 -07:00
Sam Alba
c583dc20ef implemented ClientDoFunc callback to make the client.Up code reusable for other client actions
Signed-off-by: Sam Alba <sam.alba@gmail.com>
2021-03-31 16:32:15 -07:00
Solomon Hykes
47b16a1d1b Fix "dagger new --name"
Signed-off-by: Solomon Hykes <sh.github.6811@hykes.org>
2021-03-31 22:04:15 +00:00
Andrea Luzzardi
93a07db060
Merge pull request #224 from dagger/dependabot/go_modules/cuelang.org/go-0.3.0-beta.8
build(deps): bump cuelang.org/go from 0.3.0-beta.7 to 0.3.0-beta.8
2021-03-31 14:38:22 -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