commit
b805d37cb0
@ -1,18 +1,16 @@
|
||||
package docker
|
||||
|
||||
import (
|
||||
"dagger.io/dagger/op"
|
||||
"dagger.io/alpine"
|
||||
)
|
||||
|
||||
#Client: #up: [
|
||||
op.#Load & {
|
||||
from: alpine.#Image & {
|
||||
package: bash: true
|
||||
package: jq: true
|
||||
package: curl: true
|
||||
package: "openssh-client": true
|
||||
package: "docker-cli": true
|
||||
}
|
||||
},
|
||||
]
|
||||
// A container image to run the Docker client
|
||||
#Client: alpine.#Image & {
|
||||
package: {
|
||||
bash: true
|
||||
jq: true
|
||||
curl: true
|
||||
"openssh-client": true
|
||||
"docker-cli": true
|
||||
}
|
||||
}
|
||||
|
@ -1,3 +1,4 @@
|
||||
// DEPRECATED: see dagger.io/os
|
||||
package file
|
||||
|
||||
import (
|
||||
|
@ -9,16 +9,23 @@ import (
|
||||
// A git repository
|
||||
#Repository: {
|
||||
|
||||
remote: string @dagger(input)
|
||||
ref: string @dagger(input)
|
||||
subdir: string | *"" @dagger(input)
|
||||
// Git remote.
|
||||
// Example: "https://github.com/dagger/dagger")
|
||||
remote: string @dagger(input)
|
||||
|
||||
// Git ref: can be a commit, tag or branch.
|
||||
// Example: "main"
|
||||
ref: string @dagger(input)
|
||||
|
||||
// (optional) Subdirectory
|
||||
subdir: string | *null @dagger(input)
|
||||
|
||||
#up: [
|
||||
op.#FetchGit & {
|
||||
"remote": remote
|
||||
"ref": ref
|
||||
},
|
||||
if subdir != "" {
|
||||
if subdir != null {
|
||||
op.#Subdir & {
|
||||
dir: subdir
|
||||
}
|
||||
|
Reference in New Issue
Block a user