From c306eb6883494f20016a1b330bf593e2ddb8cd20 Mon Sep 17 00:00:00 2001 From: Kohei Watanabe Date: Sun, 24 Apr 2022 19:24:37 +0900 Subject: [PATCH] create dagger --- dagger/.gitignore | 1 + dagger/Dockerfile | 1 + dagger/app.cue | 24 ++++++++++++++++++++++++ dagger/cue.mod/module.cue | 0 4 files changed, 26 insertions(+) create mode 100644 dagger/.gitignore create mode 100644 dagger/Dockerfile create mode 100644 dagger/app.cue create mode 100644 dagger/cue.mod/module.cue diff --git a/dagger/.gitignore b/dagger/.gitignore new file mode 100644 index 0000000..3d01718 --- /dev/null +++ b/dagger/.gitignore @@ -0,0 +1 @@ +cue.mod diff --git a/dagger/Dockerfile b/dagger/Dockerfile new file mode 100644 index 0000000..67fd379 --- /dev/null +++ b/dagger/Dockerfile @@ -0,0 +1 @@ +FROM alpine diff --git a/dagger/app.cue b/dagger/app.cue new file mode 100644 index 0000000..5fa4460 --- /dev/null +++ b/dagger/app.cue @@ -0,0 +1,24 @@ +package app + +import ( + "dagger.io/dagger" + "dagger.io/dagger/core" +) + +dagger.#Plan & { + client: { + filesystem: { + ".": read: contents: dagger.#FS + } + } + actions: { + docker: core.#Dockerfile & { + source: client.filesystem.".".read.contents + } + hello: core.#Exec & { + input: docker.output + args: ["echo", "Hello, World!"] + always: true + } + } +} diff --git a/dagger/cue.mod/module.cue b/dagger/cue.mod/module.cue new file mode 100644 index 0000000..e69de29