Richard Jones
7bcf9a9402
Implements dagger project init
...
Signed-off-by: Richard Jones <richard@dagger.io>
2022-03-04 15:44:11 -07:00
Helder Correia
5ca5f8a729
Add #TrimSecret task
...
Signed-off-by: Helder Correia <174525+helderco@users.noreply.github.com>
2022-03-03 14:58:30 -01:00
Richard Jones
6cdf13223c
implements dagger do
...
Signed-off-by: Richard Jones <richard@dagger.io>
2022-03-01 13:01:26 -07:00
dubo-dubon-duponey
30b5db0586
Fix flaky tests
...
Signed-off-by: dubo-dubon-duponey <dubodubonduponey+github@pm.me>
2022-02-24 23:01:33 -08:00
Richard Jones
2b3f6e832e
Implemented universe/aws and universe/aws/cli
...
Signed-off-by: Richard Jones <richard@dagger.io>
2022-02-23 14:36:27 -07:00
Joel Longtine
70c0f362ea
Update plan tests to use Europa constructs
...
Signed-off-by: Joel Longtine <joel@dagger.io>
2022-02-23 12:20:01 -07:00
Joel Longtine
2caccc69e8
Add TODO for Europa conversion
...
Signed-off-by: Joel Longtine <joel@dagger.io>
2022-02-23 12:20:01 -07:00
Joel Longtine
56ecf7f8cd
Clean up .gitignore files
...
Signed-off-by: Joel Longtine <joel@dagger.io>
2022-02-23 12:20:01 -07:00
Joel Longtine
16b66773f3
Add updated .gitignore files
...
Signed-off-by: Joel Longtine <joel@dagger.io>
2022-02-23 12:20:01 -07:00
Joel Longtine
298e19b305
comment out tests that use pre-europa pipelines
...
Signed-off-by: Joel Longtine <joel@dagger.io>
2022-02-23 12:20:01 -07:00
Joel Longtine
0ddd64f985
Remove --europa flag from tests
...
Signed-off-by: Joel Longtine <joel@dagger.io>
2022-02-23 12:20:01 -07:00
Joel Longtine
43a46128e0
Remove pre-Europa tests
...
Signed-off-by: Joel Longtine <joel@dagger.io>
2022-02-23 12:20:01 -07:00
Joel Longtine
034cd74ed0
Remove environment
...
Signed-off-by: Joel Longtine <joel@dagger.io>
2022-02-23 12:20:01 -07:00
Solomon Hykes
c2766c265b
Merge dagger.io/dagger/engine into dagger.io/dagger
...
Signed-off-by: Solomon Hykes <solomon@dagger.io>
2022-02-16 19:40:28 +00:00
Richard Jones
3c57630b0e
implemented ability to pass #Secret as env var
...
Signed-off-by: Richard Jones <richard@dagger.io>
2022-02-15 12:58:35 -07:00
Guillaume Coguiec
bd0f276d30
typo: Fix some minor typos.
...
Signed-off-by: Guillaume Coguiec <guillaume@logical.work>
2022-02-07 21:10:25 -05:00
Andrea Luzzardi
946629d1fa
Merge pull request #1534 from grouville/reconcile-auth
...
Reconcile docker.#Push.auth and engine.#Push.auth
2022-01-31 16:08:53 -08:00
guillaume
d3dca120f7
Implement modifications for engine.#Dockerfile tests, and fix lint errors
...
Signed-off-by: guillaume <guillaume.derouville@gmail.com>
2022-02-01 00:35:02 +01:00
guillaume
7778389de9
Modify #Push, #Pull tests
...
Signed-off-by: guillaume <guillaume.derouville@gmail.com>
2022-01-31 23:14:35 +01:00
Helder Correia
813a476e06
Add outputs.files task to plan
...
Signed-off-by: Helder Correia <174525+helderco@users.noreply.github.com>
2022-01-31 20:53:54 -01:00
Andrea Luzzardi
3a90542446
engine.#Source: Fix relative path support
...
Fixes #1492
Signed-off-by: Andrea Luzzardi <aluzzardi@gmail.com>
2022-01-28 15:00:52 -08:00
Richard Jones
4f2c6e55e4
added DecodeSecret as a wrapper to TransformSecret; supports yaml and json secrets
...
Signed-off-by: Richard Jones <richard@dagger.io>
2022-01-28 12:26:22 -07:00
Joel Longtine
7788b9f2f3
Merge pull request #1505 from helderco/image-config
...
Make env in ImageConfig a map
2022-01-28 10:48:31 -07:00
Richard Jones
7eb10f96fb
engine.#Copy matches docker.#Copy
...
Signed-off-by: Richard Jones <richard@dagger.io>
2022-01-27 20:09:12 -07:00
Helder Correia
c276a8b8ba
Make env in ImageConfig a map
...
Fields in CUE were renamed to the lowercase version of Dockerfile instructions.
There's now opportunity to make other fields simpler to use (e.g., healthcheck), this commit is focused on env.
Signed-off-by: Helder Correia <174525+helderco@users.noreply.github.com>
2022-01-26 17:12:08 -01:00
Vasek - Tom C
5cf25b457d
Update and add missing gitignore
...
Signed-off-by: Vasek - Tom C <tom.chauveau@epitech.eu>
2022-01-21 21:23:57 +01:00
Andrea Luzzardi
568cd194a4
tests: Basic test infrastructure for Europa Universe
...
- Each package can include its own bats file (e.g. `universe.dagger.io/yarn/test/yarn.bats`)
- universe.dagger.io includes a common bash helper file
- bats is installed/launched through yarn with minimal setup
- shellcheck is done across the entire repo
- Integrated into our CI
Signed-off-by: Andrea Luzzardi <aluzzardi@gmail.com>
2022-01-19 12:39:39 -08:00
Andrea Luzzardi
6abe77729e
europa: Code Embedding POC
...
WIP PoC for code embedding
Signed-off-by: Andrea Luzzardi <aluzzardi@gmail.com>
2022-01-14 01:34:47 -08:00
Richard Jones
d62df71fd4
added heredoc test
...
Signed-off-by: Richard Jones <richard@dagger.io>
2022-01-13 15:53:58 -07:00
Richard Jones
e59ba48ec0
added dockerfile: field back to force evaluation of disjunction
...
Signed-off-by: Richard Jones <richard@dagger.io>
2022-01-13 15:53:55 -07:00
Richard Jones
2745e1ae2e
refactored
...
Signed-off-by: Richard Jones <richard@dagger.io>
2022-01-13 15:53:30 -07:00
Richard Jones
729013ae91
rename engine.#Build to engine.#Dockerfile
...
Signed-off-by: Richard Jones <richard@dagger.io>
2022-01-13 15:53:06 -07:00
Richard Jones
05820f3a67
supports map of secrets; errors redact plaintext
...
Signed-off-by: Richard Jones <richard@dagger.io>
2022-01-13 15:06:08 -07:00
Richard Jones
86ae230261
refactored existing tests to use #TransformSecret
...
Signed-off-by: Richard Jones <richard@dagger.io>
2022-01-13 15:05:47 -07:00
Joel Longtine
816dfc8ca0
Allow hidden tasks
...
Signed-off-by: Joel Longtine <joel@dagger.io>
2022-01-12 12:58:27 -07:00
Richard Jones
ff40451ad7
update to dagger.io/dagger
...
Signed-off-by: Richard Jones <richard@dagger.io>
2022-01-12 10:42:06 -07:00
Richard Jones
9180878cf1
fix test
...
Signed-off-by: Richard Jones <richard@dagger.io>
2022-01-12 10:25:56 -07:00
Richard Jones
95542d29cb
returning stderr
...
Signed-off-by: Richard Jones <richard@dagger.io>
2022-01-12 10:25:56 -07:00
Andrea Luzzardi
4e04bf9d22
update europa dagger import path to dagger.io/dagger
...
Signed-off-by: Andrea Luzzardi <aluzzardi@gmail.com>
2022-01-11 16:40:26 -08:00
Andrea Luzzardi
f67e50a11c
test: fix op.#FetchGit test ( #1395 )
...
Signed-off-by: Andrea Luzzardi <aluzzardi@gmail.com>
2022-01-11 15:35:44 -08:00
Andrea Luzzardi
c5126412b0
Merge pull request #1307 from aluzzardi/engine-loadsecret
...
engine.#NewSecret support
2022-01-10 12:09:21 -08:00
Joel Longtine
83d6f52e10
Fix nits + cue.mod I let slip through
...
Signed-off-by: Joel Longtine <joel@dagger.io>
2022-01-07 21:32:15 -07:00
Joel Longtine
62b58f7e39
cue fmt
...
Signed-off-by: Joel Longtine <joel@dagger.io>
2022-01-07 16:46:43 -07:00
Joel Longtine
a184fe6fce
Smaller, cleaner test
...
Signed-off-by: Joel Longtine <joel@dagger.io>
2022-01-07 16:41:36 -07:00
Joel Longtine
a3db716c0a
Ensure we can Marshall #Scratch as CUE
...
Signed-off-by: Joel Longtine <joel@dagger.io>
2022-01-07 16:21:06 -07:00
Joel Longtine
6a7b5f3337
cue fmt
...
Signed-off-by: Joel Longtine <joel@dagger.io>
2022-01-07 15:50:24 -07:00
Joel Longtine
3003b31be3
Make engine.#Scratch a specialization of #FS, rather than a task
...
Signed-off-by: Joel Longtine <joel@dagger.io>
2022-01-07 15:43:58 -07:00
Andrea Luzzardi
5f840723e2
engine: LoadSecret->NewSecret
...
Signed-off-by: Andrea Luzzardi <aluzzardi@gmail.com>
2022-01-07 12:08:37 -08:00
Andrea Luzzardi
6a70271ff2
engine.#LoadSecret support
...
Fixes #1305
Signed-off-by: Andrea Luzzardi <aluzzardi@gmail.com>
2022-01-07 12:08:37 -08:00
guillaume
19e701eb57
Implement tests for #Subdir
...
Signed-off-by: guillaume <guillaume.derouville@gmail.com>
2022-01-06 00:45:29 +01:00
Sam Alba
2e072ea08a
Merge pull request #1331 from grouville/update/alpine-version
...
Update/alpine version to 3.15.0
2022-01-04 14:14:47 -08:00
Richard Jones
4e27937ccc
refactored tests and added more
...
Signed-off-by: Richard Jones <richard@dagger.io>
2022-01-04 12:20:01 -07:00
Richard Jones
7292d62cd6
more tests
...
Signed-off-by: Richard Jones <richard@dagger.io>
2022-01-04 11:32:26 -07:00
Richard Jones
6f4a5a769c
initial test
...
Signed-off-by: Richard Jones <richard@dagger.io>
2022-01-04 10:25:32 -07:00
guillaume
80a21cd6ea
Move pined packages to latest distro: core tests
...
Signed-off-by: guillaume <guillaume.derouville@gmail.com>
2022-01-04 15:27:49 +01:00
Andrea Luzzardi
2982a0dda0
engine: Task PreRun Hook
...
Tasks now have a PreRun hook that gets called before buildkit kicks in.
Allows to support local access without special casing.
Signed-off-by: Andrea Luzzardi <aluzzardi@gmail.com>
2021-12-24 00:59:49 +01:00
Sam Alba
1bbc4777af
tests: fixed secrets_sops.yml path
...
Signed-off-by: Sam Alba <samalba@users.noreply.github.com>
2021-12-23 14:18:04 -08:00
Andrea Luzzardi
9c81a155c9
engine: Make paths relative to the CUE file they're defined in
...
Fixes #1309
Signed-off-by: Andrea Luzzardi <aluzzardi@gmail.com>
2021-12-23 13:48:47 -08:00
guillaume
35498c439f
Move dockerhub envvar to sops store
...
Signed-off-by: guillaume <guillaume.derouville@gmail.com>
2021-12-23 22:13:45 +01:00
Andrea Luzzardi
e182440c8e
tests: gitPull -> gitpull
...
Signed-off-by: Andrea Luzzardi <aluzzardi@gmail.com>
2021-12-23 20:35:38 +01:00
Tom Chauveau
9927b8d94d
Refactor platform type to string
to support any kind of platform
...
Signed-off-by: Vasek - Tom C <tom.chauveau@epitech.eu>
2021-12-23 16:30:30 +01:00
Vasek - Tom C
01414f80c9
Add tests on plan platform configuration
...
Signed-off-by: Vasek - Tom C <tom.chauveau@epitech.eu>
2021-12-23 15:47:11 +01:00
Andrea Luzzardi
0e5fb4ec29
Merge pull request #1288 from TomChv/fix/fs-naming
2021-12-23 15:03:39 +01:00
Richard Jones
643d93c35d
ported FetchHTTP to HTTPFetch
...
Signed-off-by: Richard Jones <richard@dagger.io>
2021-12-22 17:10:33 -07:00
Richard Jones
bd005aeb43
improved test case
...
Signed-off-by: Richard Jones <richard@dagger.io>
2021-12-22 15:44:16 -07:00
Richard Jones
2b95bf1536
renamed files to avoid camelCase; moved token to common secrets file
...
Signed-off-by: Richard Jones <richard@dagger.io>
2021-12-22 15:44:16 -07:00
Richard Jones
c3d3ca47ff
fixed indentation
...
Signed-off-by: Richard Jones <richard@dagger.io>
2021-12-22 15:44:16 -07:00
Richard Jones
feb685cf81
fixed issue with disjunction that wouldnt resolve
...
Signed-off-by: Richard Jones <richard@dagger.io>
2021-12-22 15:44:16 -07:00
Richard Jones
0295dc6340
added support for username:password
...
Signed-off-by: Richard Jones <richard@dagger.io>
2021-12-22 15:44:16 -07:00
Richard Jones
a49d794409
added private repo test
...
Signed-off-by: Richard Jones <richard@dagger.io>
2021-12-22 15:44:16 -07:00
Richard Jones
1384b025b7
more tests
...
Signed-off-by: Richard Jones <richard@dagger.io>
2021-12-22 15:44:16 -07:00
Richard Jones
6848755a42
added gitdir test
...
Signed-off-by: Richard Jones <richard@dagger.io>
2021-12-22 15:44:16 -07:00
Richard Jones
7ca84282be
ported op.#FetchGit to engine.#GitPull
...
Signed-off-by: Richard Jones <richard@dagger.io>
2021-12-22 15:44:16 -07:00
Andrea Luzzardi
2f1f055141
engine: Support plan outputs
...
Signed-off-by: Andrea Luzzardi <aluzzardi@gmail.com>
2021-12-22 15:03:54 +01:00
Vasek - Tom C
fd6d1b55fe
Rename mode
to permissions
in fs.cue
...
Signed-off-by: Vasek - Tom C <tom.chauveau@epitech.eu>
2021-12-22 14:59:55 +01:00
Joel Longtine
a90ff8ab94
Allow for nil buildkit References
...
Signed-off-by: Joel Longtine <joel@dagger.io>
2021-12-21 12:10:48 -07:00
Joel Longtine
75d5ab8f01
Initial pass at engine.#Scratch
- failing
...
Signed-off-by: Joel Longtine <joel@dagger.io>
2021-12-21 12:10:45 -07:00
Andrea Luzzardi
7d40e79366
engine.#Build: support auth
...
Signed-off-by: Andrea Luzzardi <aluzzardi@gmail.com>
2021-12-21 10:33:55 -08:00
Andrea Luzzardi
2467fb1920
engine.#Build support
...
Signed-off-by: Andrea Luzzardi <aluzzardi@gmail.com>
2021-12-21 10:33:50 -08:00
Sam Alba
cbd141d019
Merge pull request #1278 from aluzzardi/exec-mount-cache-fix-test
...
engine.#Exec: fix mount cache flaky test
2021-12-21 09:37:13 -08:00
Andrea Luzzardi
9b2746b2cb
Merge pull request #1259 from TomChv/engine/mkdir
...
Europa: engine.#Mkdir
2021-12-21 17:53:34 +01:00
Vasek - Tom C
e11cb1b6fd
Add mkdir docs
...
Signed-off-by: Vasek - Tom C <tom.chauveau@epitech.eu>
2021-12-21 16:33:53 +01:00
Andrea Luzzardi
ffd7065a74
engine.#Exec: fix mount cache flaky test
...
Fixes #1274
Signed-off-by: Andrea Luzzardi <aluzzardi@gmail.com>
2021-12-21 14:33:25 +01:00
Sam Alba
13dafb7341
tests: implemented tasks tests for engine.#Push
...
Signed-off-by: Sam Alba <samalba@users.noreply.github.com>
2021-12-20 17:31:42 -08:00
Vasek - Tom C
d2580f4a73
Add mkdir task tests
...
Signed-off-by: Vasek - Tom C <tom.chauveau@epitech.eu>
2021-12-21 01:14:39 +01:00
Joel Longtine
1ea035ff16
engine.#Copy
...
Signed-off-by: Joel Longtine <joel@dagger.io>
2021-12-20 12:55:35 -07:00
Richard Jones
a5568775ae
fixed linting issue
...
Signed-off-by: Richard Jones <richard@dagger.io>
2021-12-20 10:19:21 -07:00
Richard Jones
5ef138fe84
secret exec
...
Signed-off-by: Richard Jones <richard@dagger.io>
2021-12-20 09:20:19 -07:00
Sam Alba
697645e950
Merge pull request #1260 from samalba/ci-move-website
...
CI split website deploy
2021-12-17 16:41:21 -08:00
Sam Alba
01d4706338
ci: fix bats tests
...
Signed-off-by: Sam Alba <samalba@users.noreply.github.com>
2021-12-17 16:02:48 -08:00
Sam Alba
1de440f83b
tests: upgraded bats
...
Signed-off-by: Sam Alba <samalba@users.noreply.github.com>
2021-12-17 13:25:04 -08:00
Sam Alba
95407fdeaf
tests: do not parallelize tests within bats files + report failure and passing tests
...
Signed-off-by: Sam Alba <samalba@users.noreply.github.com>
2021-12-17 13:17:04 -08:00
Richard Jones
aa268561bc
fixes issue where dagger hands when input directory does not exist
...
Signed-off-by: Richard Jones <richard@dagger.io>
2021-12-17 13:37:20 -07:00
Richard Jones
9426e6c13e
fixed pull_auth test
...
Signed-off-by: Richard Jones <richard@dagger.io>
2021-12-17 12:32:49 -07:00
Richard Jones
009a44ab27
context to inputs
...
Signed-off-by: Richard Jones <richard@dagger.io>
2021-12-17 12:30:35 -07:00
Richard Jones
140d753d9c
moving some things back to package dagger
...
Signed-off-by: Richard Jones <richard@dagger.io>
2021-12-17 12:30:35 -07:00
Richard Jones
03a740ff1e
input to inputs
...
Signed-off-by: Richard Jones <richard@dagger.io>
2021-12-17 12:30:35 -07:00
Richard Jones
3c0d9c5acc
cue fmt
...
Signed-off-by: Richard Jones <richard@dagger.io>
2021-12-17 12:30:35 -07:00
Richard Jones
f50311de35
refactored test to use #ReadFile
...
Signed-off-by: Richard Jones <richard@dagger.io>
2021-12-17 12:30:35 -07:00
Richard Jones
73e12296d3
added new test for input directories
...
Signed-off-by: Richard Jones <richard@dagger.io>
2021-12-17 12:30:35 -07:00