stdlib: move all imports to alpha.dagger.io
Signed-off-by: Solomon Hykes <solomon@dagger.io>
This commit is contained in:
2
stdlib/.dagger/env/sanity-check/.gitignore
vendored
Normal file
2
stdlib/.dagger/env/sanity-check/.gitignore
vendored
Normal file
@@ -0,0 +1,2 @@
|
||||
# dagger state
|
||||
state/**
|
67
stdlib/.dagger/env/sanity-check/plan/main.cue
vendored
Normal file
67
stdlib/.dagger/env/sanity-check/plan/main.cue
vendored
Normal file
@@ -0,0 +1,67 @@
|
||||
package main
|
||||
|
||||
import (
|
||||
"alpha.dagger.io/dagger"
|
||||
"alpha.dagger.io/os"
|
||||
"alpha.dagger.io/alpine"
|
||||
)
|
||||
|
||||
// Assert that there are no errors
|
||||
err: ""
|
||||
|
||||
// Directory containing universe packages (./universe/ in dagger repo)
|
||||
universe: dagger.#Input & dagger.#Artifact
|
||||
|
||||
ctr: #CueCLI & {
|
||||
vendor: "alpha.dagger.io": universe
|
||||
command: """
|
||||
(
|
||||
find . -name '*.cue' -print0 | xargs -0iX dirname X | sort -u | {
|
||||
|
||||
while read -r dir; do
|
||||
echo "--- $dir"
|
||||
cue eval "$dir" >/dev/null
|
||||
done
|
||||
} > /out 2>/err
|
||||
) || true
|
||||
"""
|
||||
}
|
||||
|
||||
result: (os.#File & {
|
||||
from: ctr.ctr
|
||||
path: "/out"
|
||||
}).contents @dagger(output)
|
||||
|
||||
err: (os.#File & {
|
||||
from: ctr.ctr
|
||||
path: "/err"
|
||||
}).contents @dagger(output)
|
||||
|
||||
#CueCLI: {
|
||||
command: string
|
||||
vendor: [name=string]: dagger.#Artifact
|
||||
|
||||
ctr: os.#Container & {
|
||||
image: alpine.#Image & {
|
||||
package: {
|
||||
curl: true
|
||||
tar: true
|
||||
}
|
||||
}
|
||||
setup: [
|
||||
"""
|
||||
set -e
|
||||
cd $(mktemp -d)
|
||||
curl -L https://github.com/cuelang/cue/releases/download/v0.4.0/cue_v0.4.0_linux_amd64.tar.gz -o cue.tgz
|
||||
tar zxvf cue.tgz
|
||||
cp cue /usr/local/bin/cue
|
||||
rm -fr ./*
|
||||
""",
|
||||
]
|
||||
for name, dir in vendor {
|
||||
mount: "/ctx/cue.mod/pkg/\(name)": from: dir
|
||||
}
|
||||
dir: "/ctx"
|
||||
"command": command
|
||||
}
|
||||
}
|
27
stdlib/.dagger/env/sanity-check/values.yaml
vendored
Normal file
27
stdlib/.dagger/env/sanity-check/values.yaml
vendored
Normal file
@@ -0,0 +1,27 @@
|
||||
plan:
|
||||
module: .dagger/env/sanity-check/plan
|
||||
name: sanity-check
|
||||
inputs:
|
||||
universe:
|
||||
dir:
|
||||
path: .
|
||||
sops:
|
||||
kms: []
|
||||
gcp_kms: []
|
||||
azure_kv: []
|
||||
hc_vault: []
|
||||
age:
|
||||
- recipient: age1gxwmtwahzwdmrskhf90ppwlnze30lgpm056kuesrxzeuyclrwvpsupwtpk
|
||||
enc: |
|
||||
-----BEGIN AGE ENCRYPTED FILE-----
|
||||
YWdlLWVuY3J5cHRpb24ub3JnL3YxCi0+IFgyNTUxOSBtMjhYeVhscGxYWVg1RHZ2
|
||||
bjlWcnFuQ1hvVGVvZGRDYUlpeWpYYUZnWW5nCndObmdoSkpZZXI4MytwNUtsMkwr
|
||||
ZkY4a01iN1dSL05KaGExSk0rWFpjNzQKLS0tIGF0eVRXalloUERaU2lhZ2gwcG1G
|
||||
RE1BR1ZvSlpRWnpZVERFQlB5ckhPYk0KMm8XjFKgcjWaXh9F542NXyv9dBZQdZJC
|
||||
rn5YittfEOwRkrlqBCVwPtU+nhE5oDxnt9a0n8JMUgvB0Nnd6tgP+A==
|
||||
-----END AGE ENCRYPTED FILE-----
|
||||
lastmodified: "2021-06-24T15:27:51Z"
|
||||
mac: ENC[AES256_GCM,data:SDJPXr1NjGSOcHMLmKrzJ9XkFjfXOg7g5pdgXS3fQ4sSALVBqhHSfHJnH2m4NVSJPyOd35ia2/BivTWTGw1oguovLSfSvlptPUDqbwsXQoB2NEFcAJ6eJeDyz8Bx98OrBliyJaVOVYzF4y5dWwW2BGuevW097PbY/Sv3p6x8fyY=,iv:IftNBSOvEn3nGRQlD47At8pvundsXdk68yz+cWct/tU=,tag:XUPxsP39xSjPgvIZNBV09w==,type:str]
|
||||
pgp: []
|
||||
encrypted_suffix: secret
|
||||
version: 3.7.1
|
Reference in New Issue
Block a user