Commit Graph

2914 Commits

Author SHA1 Message Date
Solomon Hykes
fb27b698b3 Move CLI spec to a better location
Signed-off-by: Solomon Hykes <sh.github.6811@hykes.org>
2021-03-22 12:49:43 -07:00
Solomon Hykes
f7e4279ef8 dagger CLI spec
Signed-off-by: Solomon Hykes <sh.github.6811@hykes.org>
2021-03-22 12:44:03 -07:00
Tony Worm
a90a823d80 updates go.mod (via go mod download)
Signed-off-by: Tony Worm <tony@hofstadter.io>
2021-03-22 14:51:50 -04:00
Andrea Luzzardi
5dd7dea6af
Merge pull request #201 from dagger/dependabot/go_modules/cuelang.org/go-0.3.0-beta.7
build(deps): bump cuelang.org/go from 0.3.0-beta.6 to 0.3.0-beta.7
2021-03-22 11:32:40 -07:00
Andrea Luzzardi
9b8d1141e1 fix go.mod
Signed-off-by: Andrea Luzzardi <aluzzardi@gmail.com>
2021-03-22 11:24:08 -07:00
dependabot[bot]
3c1b4ea8ce
build(deps): bump cuelang.org/go from 0.3.0-beta.6 to 0.3.0-beta.7
Bumps cuelang.org/go from 0.3.0-beta.6 to 0.3.0-beta.7.

Signed-off-by: dependabot[bot] <support@github.com>
2021-03-22 08:58:13 +00:00
Andrea Luzzardi
b23984f0b3
Merge pull request #200 from dagger/stable-llb
cache fix: stable ordering of maps (Env, Mount, ...)
2021-03-19 18:11:29 -07:00
Andrea Luzzardi
b8de4e5049 cache fix: stable ordering of maps (Env, Mount, ...)
Maps were causing the same Pipeline to randomly produce slightly different LLB
on each run (because they are represented as an array in LLB, wheras
they're a map in CueLLB).

This forces every Cue field iteration (env, mount, etc) to be
predictable by using stable sorting.

Signed-off-by: Andrea Luzzardi <aluzzardi@gmail.com>
2021-03-19 15:07:01 -07:00
Andrea Luzzardi
1904d3a918
Merge pull request #198 from dagger/inputs-encryption
Inputs encryption using SOPS
2021-03-19 13:02:56 -07:00
Andrea Luzzardi
b90f6d5b2d examples: clarify react-netlify instructions
Signed-off-by: Andrea Luzzardi <aluzzardi@gmail.com>
2021-03-19 10:38:33 -07:00
Andrea Luzzardi
35028b5d57 ci: run tests and linter in parallel
Signed-off-by: Andrea Luzzardi <aluzzardi@gmail.com>
2021-03-18 18:41:38 -07:00
Andrea Luzzardi
d351b0086a debug
Signed-off-by: Andrea Luzzardi <aluzzardi@gmail.com>
2021-03-18 18:37:45 -07:00
Andrea Luzzardi
fbdfe27103 stdlib: netlify: export the deployUrl and logsUrl
Signed-off-by: Andrea Luzzardi <aluzzardi@gmail.com>
2021-03-18 18:37:45 -07:00
Andrea Luzzardi
5438e4177c stdlib: add tests for netlify
Signed-off-by: Andrea Luzzardi <aluzzardi@gmail.com>
2021-03-18 18:37:45 -07:00
Andrea Luzzardi
657b100ff1 ci: test react-netlify using secrets
Signed-off-by: Andrea Luzzardi <aluzzardi@gmail.com>
2021-03-18 18:37:45 -07:00
Andrea Luzzardi
87d576e936 ci: remove git-crypt, switch to sops
Signed-off-by: Andrea Luzzardi <aluzzardi@gmail.com>
2021-03-18 18:37:45 -07:00
Andrea Luzzardi
56ea7e3991 do not log inputs as they may contain secrets
Signed-off-by: Andrea Luzzardi <aluzzardi@gmail.com>
2021-03-18 17:43:13 -07:00
Andrea Luzzardi
e6bb3f12f4 inputs decryption using SOPS
- Add support for --input-json and --input-yaml (plaintext)
- Input files can optionally be encrypted using sops, with transparent
  decryption by dagger

Signed-off-by: Andrea Luzzardi <aluzzardi@gmail.com>
2021-03-18 17:43:13 -07:00
Sam Alba
eb6fe17df3
Merge pull request #188 from dagger/example-aws-eks
Example for deploying containers to AWS EKS
2021-03-18 16:37:29 -07:00
Sam Alba
dd5e5684b2 stdlib: moved kubeconfig to #Secret
Signed-off-by: Sam Alba <sam.alba@gmail.com>
2021-03-18 16:26:38 -07:00
Sam Alba
13fa947062 stdlib: cue fmt
Signed-off-by: Sam Alba <sam.alba@gmail.com>
2021-03-18 16:09:43 -07:00
Andrea Luzzardi
fee4431d48
Merge pull request #199 from dagger/fix-log-flags
fix --log-* flags
2021-03-18 16:02:24 -07:00
Andrea Luzzardi
ad0fcfffeb fix --log-* flags
Have each command create their own logger rather than using the one from
`cmd.Context()`. This is because that one gets created "too early" when
`--log-*` flags have not been parsed yet.

Fixes #181

Signed-off-by: Andrea Luzzardi <aluzzardi@gmail.com>
2021-03-18 15:55:16 -07:00
Sam Alba
abdcb7e093 added kubeconfig code in the example + updated readme
Signed-off-by: Sam Alba <sam.alba@gmail.com>
2021-03-18 15:53:55 -07:00
Sam Alba
54251f88b4 stdlib: share aws config cli
Signed-off-by: Sam Alba <sam.alba@gmail.com>
2021-03-18 15:53:26 -07:00
Sam Alba
ea02b579d6 stdlib: implemented aws/eks
Signed-off-by: Sam Alba <sam.alba@gmail.com>
2021-03-18 15:51:56 -07:00
Andrea Luzzardi
53e98e8ef5
Merge pull request #196 from dagger/fetchgit-cache-fix
pipeline: FetchGit: make a copy of the content to avoid caching issues
2021-03-18 14:48:34 -07:00
Andrea Luzzardi
1309af9c9c
Merge pull request #197 from dagger/logger-json
logger: serialize unknown fields to json
2021-03-18 11:50:44 -07:00
Andrea Luzzardi
29e8c3b94b
Merge pull request #195 from dagger/update-daggerignore
update .daggerignore
2021-03-18 11:19:20 -07:00
Andrea Luzzardi
5cd3aa5001 logger: serialize unknown fields to json
Signed-off-by: Andrea Luzzardi <aluzzardi@gmail.com>
2021-03-18 11:18:50 -07:00
Andrea Luzzardi
5b1e7eeacf pipeline: FetchGit: make a copy of the content to avoid caching issues
Signed-off-by: Andrea Luzzardi <aluzzardi@gmail.com>
2021-03-18 11:18:06 -07:00
Sam Alba
f7457e2cba Simplified infra args to be more intuitive + moved EKS worker node group to managed nodes instead of plain ec2 instances
Signed-off-by: Sam Alba <sam.alba@gmail.com>
2021-03-18 10:42:45 -07:00
Andrea Luzzardi
b1b2118431 update .daggerignore
Signed-off-by: Andrea Luzzardi <aluzzardi@gmail.com>
2021-03-18 10:04:13 -07:00
Andrea Luzzardi
6cecde59fd
Merge pull request #192 from verdverm/daggerignore
implement .daggerignore
2021-03-18 10:00:16 -07:00
Tony Worm
3dab86694e impl test, log patterns when .daggerignore found, lint, fix stdlib/file test imports
Signed-off-by: Tony Worm <tony@hofstadter.io>
2021-03-18 12:38:50 -04:00
Solomon Hykes
a407019349 Expand README content, split into multiple files
Signed-off-by: Solomon Hykes <sh.github.6811@hykes.org>
2021-03-17 23:08:50 -07:00
Andrea Luzzardi
a20ec1269b
Merge pull request #191 from dagger/buildkit-wait-ready
buildkit: wait for buildkitd to be ready before connecting
2021-03-17 17:56:19 -07:00
Tony Worm
a1ba7aa59c implement .daggerignore
Signed-off-by: Tony Worm <tony@hofstadter.io>
2021-03-17 19:55:28 -04:00
Sam Alba
d282180ae6 stdlib: fixed deprecation error in cloudformation.cue
Signed-off-by: Sam Alba <sam.alba@gmail.com>
2021-03-17 15:30:14 -07:00
Andrea Luzzardi
d7e9c91b01 buildkit: wait for buildkitd to be ready before connecting
Signed-off-by: Andrea Luzzardi <aluzzardi@gmail.com>
2021-03-17 14:54:51 -07:00
Solomon Hykes
11e4c69011 README: Application Delivery as Code (ADC)
Signed-off-by: Solomon Hykes <sh.github.6811@hykes.org>
2021-03-17 01:11:40 -07:00
Solomon Hykes
db40d98d8a Improve overall explanation in README
Signed-off-by: Solomon Hykes <sh.github.6811@hykes.org>
2021-03-16 19:45:28 -07:00
Sam Alba
5900ec24ec implemented EKS infra provisioning with CFN
Signed-off-by: Sam Alba <sam.alba@gmail.com>
2021-03-16 17:45:34 -07:00
Andrea Luzzardi
c42ccd4385
Merge pull request #182 from verdverm/add-missing-ops
add missing ops to #Op in stdlib/llb
2021-03-16 14:27:26 -07:00
Tony Worm
13198f8560 fix TitleCase error
Signed-off-by: Tony Worm <tony@hofstadter.io>
2021-03-16 16:59:32 -04:00
Tony Worm
3a9b33f028 move timeout to golangci-lint command
Signed-off-by: Tony Worm <tony@hofstadter.io>
2021-03-16 15:33:52 -04:00
Tony Worm
587e1d2d89 increase lint action timeout to 3m
Signed-off-by: Tony Worm <tony@hofstadter.io>
2021-03-16 15:26:39 -04:00
Tony Worm
aebf466b14 cuefmt
Signed-off-by: Tony Worm <tony@hofstadter.io>
2021-03-16 15:20:29 -04:00
Tony Worm
7ec96c45f8 add missing ops to #Op in stdlib/llb
Signed-off-by: Tony Worm <tony@hofstadter.io>
2021-03-16 13:56:35 -04: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