ci: move ci infra top-level

Signed-off-by: Andrea Luzzardi <aluzzardi@gmail.com>
This commit is contained in:
Andrea Luzzardi 2022-04-04 17:40:16 -07:00
parent 50b36a50aa
commit 93d2224073
10 changed files with 9 additions and 20 deletions

View File

@ -55,7 +55,6 @@ jobs:
DAGGER_CACHE_TO: "type=gha,mode=max,scope=dagger-ci-build"
DAGGER_CACHE_FROM: "type=gha,scope=dagger-ci-build"
run: |
cd ci
dagger do build
lint:
@ -83,5 +82,4 @@ jobs:
DAGGER_CACHE_TO: "type=gha,mode=max,scope=dagger-ci-lint"
DAGGER_CACHE_FROM: "type=gha,scope=dagger-ci-lint"
run: |
cd ci
dagger do lint

View File

@ -8,9 +8,9 @@ import (
"universe.dagger.io/docker"
"universe.dagger.io/go"
"github.com/dagger/dagger/ci/pkg/golangci"
"github.com/dagger/dagger/ci/pkg/shellcheck"
"github.com/dagger/dagger/ci/pkg/markdownlint"
"github.com/dagger/dagger/ci/golangci"
"github.com/dagger/dagger/ci/shellcheck"
"github.com/dagger/dagger/ci/markdownlint"
)
dagger.#Plan & {
@ -20,16 +20,16 @@ dagger.#Plan & {
// platform: "linux/aarch64"
platform: "linux/amd64"
client: filesystem: "../": read: exclude: [
"ci",
client: filesystem: ".": read: exclude: [
"bin",
"**/node_modules",
"cmd/dagger/dagger",
"cmd/dagger/dagger-debug",
]
client: filesystem: "./build": write: contents: actions.build.output
client: filesystem: "./bin": write: contents: actions.build.output
actions: {
_source: client.filesystem["../"].read.contents
_source: client.filesystem["."].read.contents
// FIXME: this can be removed once `go` supports built-in VCS info
version: {
@ -103,6 +103,7 @@ dagger.#Plan & {
}
cue: docker.#Build & {
// FIXME: spin off into its own package?
steps: [
alpine.#Build & {
packages: bash: _

1
ci/.gitignore vendored
View File

@ -1 +0,0 @@
build/*

View File

@ -1,7 +0,0 @@
# Dagger CI
WORK IN PROGRESS
This is the home of the new CI
Reference: https://github.com/dagger/dagger/issues/1549

View File

@ -1 +0,0 @@
module: "github.com/dagger/dagger/ci"

View File

@ -1 +0,0 @@
../../pkg

View File

@ -1 +1 @@
module: ""
module: "github.com/dagger/dagger"