cue files: #compute -> #up
Signed-off-by: Andrea Luzzardi <aluzzardi@gmail.com>
This commit is contained in:
committed by
Solomon Hykes
parent
8a4aa4d42b
commit
c16455249e
@@ -10,7 +10,7 @@ let defaultVersion = "3.13.2@sha256:a75afd8b57e7f34e4dad8d65e2c7ba2e1975c795ce1e
|
||||
package: [string]: true | false | string
|
||||
version: string | *defaultVersion
|
||||
|
||||
#compute: [
|
||||
#up: [
|
||||
llb.#FetchContainer & {
|
||||
ref: "index.docker.io/alpine:\(version)"
|
||||
},
|
||||
|
@@ -18,7 +18,7 @@ import (
|
||||
|
||||
// Re-usable aws-cli component
|
||||
#CLI: {
|
||||
#compute: [
|
||||
#up: [
|
||||
llb.#Load & {
|
||||
from: alpine.#Image & {
|
||||
package: bash: "=5.1.0-r0"
|
||||
|
@@ -46,7 +46,7 @@ import (
|
||||
|
||||
outputs: [string]: string
|
||||
|
||||
outputs: #compute: [
|
||||
outputs: #up: [
|
||||
llb.#Load & {
|
||||
from: aws.#CLI
|
||||
},
|
||||
|
@@ -21,7 +21,7 @@ import (
|
||||
kubeconfig: {
|
||||
dagger.#Secret
|
||||
|
||||
#compute: [
|
||||
#up: [
|
||||
llb.#Load & {
|
||||
from: aws.#CLI
|
||||
},
|
||||
|
@@ -7,7 +7,7 @@ import (
|
||||
// An artifact such as source code checkout, container image, binary archive...
|
||||
// May be passed as user input, or computed by a buildkit pipeline
|
||||
#Artifact: {
|
||||
#up: llb.#Pipeline
|
||||
#up: [...llb.#Op]
|
||||
_
|
||||
...
|
||||
}
|
||||
|
@@ -11,7 +11,7 @@ import (
|
||||
#Build: {
|
||||
source: dagger.#Artifact
|
||||
|
||||
image: #compute: [
|
||||
image: #up: [
|
||||
llb.#DockerBuild & {context: source},
|
||||
]
|
||||
}
|
||||
@@ -22,14 +22,14 @@ import (
|
||||
// image may be a remote image ref, or a computed artifact
|
||||
{
|
||||
image: #Ref
|
||||
out: #compute: [
|
||||
out: #up: [
|
||||
llb.#FetchContainer & {ref: image},
|
||||
llb.#Exec & {"args": args},
|
||||
]
|
||||
|
||||
} | {
|
||||
image: _
|
||||
out: #compute: [
|
||||
out: #up: [
|
||||
llb.#Load & {from: image},
|
||||
llb.#Exec & {"args": args},
|
||||
]
|
||||
|
@@ -11,7 +11,7 @@ import (
|
||||
permissions: int | *0o644
|
||||
contents: string | bytes
|
||||
|
||||
#compute: [
|
||||
#up: [
|
||||
llb.#WriteFile & {dest: filename, content: contents, mode: permissions},
|
||||
]
|
||||
}
|
||||
@@ -24,7 +24,7 @@ import (
|
||||
|
||||
orig: (#read & {path: filename, "from": from}).data
|
||||
|
||||
#compute: [
|
||||
#up: [
|
||||
llb.#WriteFile & {dest: filename, content: "\(orig)\(contents)", mode: permissions},
|
||||
]
|
||||
}
|
||||
@@ -40,7 +40,7 @@ import (
|
||||
from: dagger.#Artifact
|
||||
data: {
|
||||
string
|
||||
#compute: [
|
||||
#up: [
|
||||
llb.#Load & {"from": from},
|
||||
llb.#Export & {source: path},
|
||||
]
|
||||
@@ -62,7 +62,7 @@ _#glob: {
|
||||
data: {
|
||||
string
|
||||
_tmppath: "/tmp/ls.out"
|
||||
#compute: [
|
||||
#up: [
|
||||
llb.#Load & {"from": from},
|
||||
llb.#Exec & {
|
||||
args: ["sh", "-c", "ls \(glob) > \(_tmppath)"]
|
||||
|
@@ -10,7 +10,7 @@ import (
|
||||
remote: string
|
||||
ref: string
|
||||
|
||||
#compute: [
|
||||
#up: [
|
||||
llb.#FetchGit & {
|
||||
"remote": remote
|
||||
"ref": ref
|
||||
|
@@ -18,7 +18,7 @@ import (
|
||||
// Environment variables
|
||||
env: [string]: string
|
||||
|
||||
#compute: [
|
||||
#up: [
|
||||
llb.#FetchContainer & {
|
||||
ref: "docker.io/golang:\(version)-alpine"
|
||||
},
|
||||
@@ -63,7 +63,7 @@ import (
|
||||
|
||||
env: [string]: string
|
||||
|
||||
#compute: [
|
||||
#up: [
|
||||
llb.#Copy & {
|
||||
from: #Go & {
|
||||
"version": version
|
||||
|
@@ -50,7 +50,7 @@ import (
|
||||
// Kubectl version
|
||||
kubectlVersion: *"v1.19.9" | string
|
||||
|
||||
#compute: [
|
||||
#up: [
|
||||
llb.#Load & {
|
||||
from: kubernetes.#Kubectl & {
|
||||
version: kubectlVersion
|
||||
|
@@ -17,7 +17,7 @@ import (
|
||||
}
|
||||
"""#
|
||||
|
||||
#compute: [
|
||||
#up: [
|
||||
llb.#Load & {
|
||||
from: alpine.#Image & {
|
||||
package: bash: "=5.1.0-r0"
|
||||
@@ -62,7 +62,7 @@ import (
|
||||
kubectl --namespace "$KUBE_NAMESPACE" apply -R -f /source
|
||||
"""#
|
||||
|
||||
#compute: [
|
||||
#up: [
|
||||
llb.#Load & {
|
||||
from: #Kubectl & {"version": version}
|
||||
},
|
||||
|
@@ -15,9 +15,6 @@ package llb
|
||||
#Mkdir |
|
||||
#DockerBuild
|
||||
|
||||
// Pipeline is a series of operations
|
||||
#Pipeline: [...llb.#Op]
|
||||
|
||||
// Export a value from fs state to cue
|
||||
#Export: {
|
||||
do: "export"
|
||||
|
@@ -42,7 +42,7 @@ import (
|
||||
// Logs URL for this deployment
|
||||
logsUrl: string
|
||||
|
||||
#compute: [
|
||||
#up: [
|
||||
llb.#Load & {
|
||||
from: alpine.#Image & {
|
||||
package: bash: "=~5.1"
|
||||
|
@@ -21,7 +21,7 @@ import (
|
||||
// Set these environment variables during the build
|
||||
env?: [string]: string
|
||||
|
||||
#compute: [
|
||||
#up: [
|
||||
llb.#Load & {
|
||||
from: alpine.#Image & {
|
||||
package: bash: "=~5.1"
|
||||
|
Reference in New Issue
Block a user