Update dockerfile test to use client API
Signed-off-by: Vasek - Tom C <tom.chauveau@epitech.eu>
This commit is contained in:
parent
cc601a4e07
commit
c6da3eeb9e
@ -6,9 +6,9 @@ import (
|
|||||||
)
|
)
|
||||||
|
|
||||||
dagger.#Plan & {
|
dagger.#Plan & {
|
||||||
inputs: directories: testdata: path: "./testdata"
|
client: filesystem: "./testdata": read: contents: dagger.#FS
|
||||||
|
|
||||||
actions: tests: dockerfile: {
|
actions: test: dockerfile: {
|
||||||
simple: {
|
simple: {
|
||||||
build: docker.#Build & {
|
build: docker.#Build & {
|
||||||
steps: [
|
steps: [
|
||||||
@ -45,7 +45,7 @@ dagger.#Plan & {
|
|||||||
build: docker.#Build & {
|
build: docker.#Build & {
|
||||||
steps: [
|
steps: [
|
||||||
docker.#Dockerfile & {
|
docker.#Dockerfile & {
|
||||||
source: inputs.directories.testdata.contents
|
source: client.filesystem."./testdata".read.contents
|
||||||
},
|
},
|
||||||
docker.#Run & {
|
docker.#Run & {
|
||||||
command: {
|
command: {
|
||||||
|
@ -5,5 +5,8 @@ setup() {
|
|||||||
}
|
}
|
||||||
|
|
||||||
@test "docker" {
|
@test "docker" {
|
||||||
dagger "do" -p ./ test
|
dagger "do" -p ./build.cue test
|
||||||
|
dagger "do" -p ./dockerfile.cue test
|
||||||
|
dagger "do" -p ./run.cue test
|
||||||
|
dagger "do" -p ./image.cue test
|
||||||
}
|
}
|
||||||
|
Reference in New Issue
Block a user