Commit Graph

108 Commits

Author SHA1 Message Date
Solomon Hykes
ce1a5659eb docker.#Run: remove redundant image field
Signed-off-by: Solomon Hykes <solomon@dagger.io>
2022-02-09 19:59:22 +00:00
Solomon Hykes
b251528535
Merge pull request #1585 from shykes/universe-tests
yarn: cleanup tests
2022-02-09 09:30:33 -08:00
Solomon Hykes
b23a90c9b1 yarn: cleanup tests
Signed-off-by: Solomon Hykes <solomon@dagger.io>
2022-02-09 08:58:34 +00:00
Solomon Hykes
e8a62cb3aa universe.dagger.io/examples/changelog.com: successful build
Signed-off-by: Solomon Hykes <solomon@dagger.io>
2022-02-09 08:49:44 +00:00
Solomon Hykes
5a1ce0acac universe.dagger.io/examples/changelog.com: cleanup and fixes
Signed-off-by: Solomon Hykes <solomon@dagger.io>
2022-02-09 08:34:54 +00:00
Solomon Hykes
80f9a65ca7 Fix cue eval from pkg/universe.dagger.io
Signed-off-by: Solomon Hykes <solomon@dagger.io>
2022-02-09 08:04:24 +00:00
Solomon Hykes
7502bc876b netlify: cleanup tests
Signed-off-by: Solomon Hykes <solomon@dagger.io>
2022-02-09 01:41:36 +00:00
Solomon Hykes
20e1ac9d7f docker: cleanup tests
Signed-off-by: Solomon Hykes <solomon@dagger.io>
2022-02-09 01:41:36 +00:00
Solomon Hykes
090ecfb9f2 bash: cleanup tests
Signed-off-by: Solomon Hykes <solomon@dagger.io>
2022-02-09 01:41:36 +00:00
Solomon Hykes
cf6fadbeda alpine: cleanup tests
Signed-off-by: Solomon Hykes <solomon@dagger.io>
2022-02-09 01:41:33 +00:00
Solomon Hykes
e6b5fd3de9 yarn.#Build: simpler API, better tests
* Remove mandatory 'cache' field
* New 'name' field to customize cache IDs instead
* Simplify and expand tests

Signed-off-by: Solomon Hykes <solomon@dagger.io>
2022-02-08 23:02:03 +00:00
Solomon Hykes
013900c2a2 bash.#Run: new and improved
* Script is written to filesystem, not inlined as argument
* Pass script either as string, or directory+filename

Signed-off-by: Solomon Hykes <solomon@dagger.io>
2022-02-08 22:00:25 +00:00
Solomon Hykes
3231d69d06
Merge pull request #1550 from talentedmrjones/europa-decode-secret-task
implemented #DecodeSecret as engine task
2022-02-08 11:48:14 -08:00
Solomon Hykes
298a119b09
Merge pull request #1569 from shykes/docker-run-tweak
Simplify docker.#Run
2022-02-08 09:58:22 -08: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
Solomon Hykes
354334a3dc Simplify docker.#Run
* `cmd` is renamed to `command` for readability
  * `script` is removed. Feature moves up the stack (bash.#Run,
    python.#Run)

Signed-off-by: Solomon Hykes <solomon@dagger.io>
2022-02-08 01:35:51 +00:00
Richard Jones
a087161fbb implemented #DecodeSecret as engine task
Signed-off-by: Richard Jones <richard@dagger.io>
2022-02-04 14:03:55 -07:00
Andrea Luzzardi
55a9c9100d logger: collapse logs for hidden fields
This change "collapses" together log "groups" containing hidden fields
for the TTY logger.

e.g. `actions.foo._a` and `actions.foo_b` will show up as a combined `actions.foo`.

Caveats: Since we don't know in advance how many tasks are in a group, the state will change back and forth.
For each task in a group, the state will transition from computing to complete (e.g. blue to green), then back to computing and so on.
The transition is fast enough not to be visibile.

Signed-off-by: Andrea Luzzardi <aluzzardi@gmail.com>
2022-02-04 10:03:14 -08:00
Sam Alba
1d1ce2ba28 universe: add note about package pinning for later
Signed-off-by: Sam Alba <samalba@users.noreply.github.com>
2022-02-02 14:59:47 -08:00
Andrea Luzzardi
1f97da4eb9 Fix nested vendoring
For code embedding (e.g. deploy.sh), we've changed vendor embedding to
include all contents instead of just CUE files #1526.

The problem is we're vendoring the package's `cue.mod/pkg`.

This fixes it.

Signed-off-by: Andrea Luzzardi <aluzzardi@gmail.com>
2022-01-31 17:06:00 -08:00
Andrea Luzzardi
676a895a0f
Merge pull request #1535 from helderco/docker-set
Set image metadata
2022-01-31 16:09:22 -08: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
Helder Correia
9e33a09903
Add docker.#Set for updating image metadata
Signed-off-by: Helder Correia <174525+helderco@users.noreply.github.com>
2022-01-31 22:44:55 -01: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
ac30274d96 Implement modifications for engine.#Pull, engine.#Push, docker.#Push, docker.#Pull
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
025ce14ed3
Merge pull request #1526 from TomChv/fix/embed-sh-script
Embed shell script into universe
2022-01-28 15:22:26 -08:00
Vasek - Tom C
6f5095ec19
Fix permissions issue and doc generation issue
Signed-off-by: Vasek - Tom C <tom.chauveau@epitech.eu>
2022-01-28 23:17:52 +01:00
Vasek - Tom C
32b48f7dce
Optimize tests with simpler workflow
Signed-off-by: Vasek - Tom C <tom.chauveau@epitech.eu>
2022-01-28 22:04:16 +01:00
Vasek - Tom C
5de86cb1ee
Embed all files instead of just cue file
Signed-off-by: Vasek - Tom C <tom.chauveau@epitech.eu>
2022-01-28 22:02:21 +01:00
Tom Chauveau
26b2ef8697
Add tests on docker.#Build definition
- Simple build test
- Multi step to build a go binary

Signed-off-by: Vasek - Tom C <tom.chauveau@epitech.eu>
2022-01-28 21:17:33 +01: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
cc54aa6795 Clean up changes from #1505
Signed-off-by: Joel Longtine <joel@dagger.io>
2022-01-28 11:15:44 -07:00
Joel Longtine
b0b84db5e8 Close #ImageConfig
Signed-off-by: Joel Longtine <joel@dagger.io>
2022-01-28 10:59:09 -07:00
Joel Longtine
0de625e1c3 cue fmt
Signed-off-by: Joel Longtine <joel@dagger.io>
2022-01-28 10:57:30 -07:00
Joel Longtine
6db42168e4 Tests!
Signed-off-by: Joel Longtine <joel@dagger.io>
2022-01-28 10:57:30 -07:00
Joel Longtine
dcef2958cf Use image.config in docker.#Run
Signed-off-by: Joel Longtine <joel@dagger.io>
2022-01-28 10:57:25 -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
Joel Longtine
7b8a637bea
Merge pull request #1519 from jlongtine/mod-get-europa
Remove dependence on project, use cue.mod path.
2022-01-28 10:39:25 -07:00
Richard Jones
da58dfa5a4
fixed shadowing
Signed-off-by: Richard Jones <richard@dagger.io>
2022-01-28 10:06:02 -07:00
Vasek - Tom C
fcd90fa78a
Solves #1512
Signed-off-by: Vasek - Tom C <tom.chauveau@epitech.eu>
2022-01-28 15:27:32 +01:00
Richard Jones
23b07215d8
fix universe packages
Signed-off-by: Richard Jones <richard@dagger.io>
2022-01-27 20:20:37 -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
Joel Longtine
b33d6b2243 Remove dependence on project, use cue.mod path.
Ensure that we have done an init in this folder.

Also, force a clean checkout of the tag we've chosen to upgrade to.

Signed-off-by: Joel Longtine <joel@dagger.io>
2022-01-27 16:54:42 -07:00
Gerhard Lazu
5719ccbc96
Add a new make target that provisions dagger-ci declaratively
While at it, add help make target & make it the default.
This explains all make targets. Run `make help` to see it in action 😉

dagger-ci-pr1499-2022-01-26 API token was added as an AGE secret. It can
be accessed only by the intended recipients are able to decrypt it with
their private SSH keys.

    echo "TOKEN" | age -R .age.recipients.txt -o .do.dagger-ci-pr1499-2022-01-26.age

Do not assume that /bin/true exists on hosts running Docker.  Use "true"
and let the system resolve the path.

Re-enable all ssh Universe tests.

Signed-off-by: Gerhard Lazu <gerhard@lazu.co.uk>
2022-01-26 23:13:59 +00: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
Gerhard Lazu
0be326ade9
Restore all disabled tests that depend on ssh
This requires us to spin up a new dagger-ci VM, as mentioned here:
https://github.com/dagger/dagger/pull/1493#issuecomment-1021080655

Signed-off-by: Gerhard Lazu <gerhard@lazu.co.uk>
2022-01-26 12:44:14 +00:00
Gerhard Lazu
2715b7b6d0
Merge pull request #1493 from aluzzardi/test-disable-ssh
test: disable tests relying on SSH
2022-01-25 11:15:51 +00:00
Andrea Luzzardi
b242a2b9bc test: disable tests relying on SSH
Signed-off-by: Andrea Luzzardi <aluzzardi@gmail.com>
2022-01-24 17:21:05 -08:00
Vasek - Tom C
4ab852347b
Add test on docker.#Run
Signed-off-by: Vasek - Tom C <tom.chauveau@epitech.eu>
2022-01-22 13:33:23 +01:00