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 & {
|
||||
inputs: directories: testdata: path: "./testdata"
|
||||
client: filesystem: "./testdata": read: contents: dagger.#FS
|
||||
|
||||
actions: tests: dockerfile: {
|
||||
actions: test: dockerfile: {
|
||||
simple: {
|
||||
build: docker.#Build & {
|
||||
steps: [
|
||||
@ -45,7 +45,7 @@ dagger.#Plan & {
|
||||
build: docker.#Build & {
|
||||
steps: [
|
||||
docker.#Dockerfile & {
|
||||
source: inputs.directories.testdata.contents
|
||||
source: client.filesystem."./testdata".read.contents
|
||||
},
|
||||
docker.#Run & {
|
||||
command: {
|
||||
|
@ -5,5 +5,8 @@ setup() {
|
||||
}
|
||||
|
||||
@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