From 037dacaf6d05bc25d4fe3185640f032776983086 Mon Sep 17 00:00:00 2001 From: Andrea Luzzardi Date: Fri, 5 Feb 2021 15:35:51 -0800 Subject: [PATCH] example: deploy react to netlify Signed-off-by: Andrea Luzzardi --- examples/react-netlify/main.cue | 28 ++++++++++++++++++++++++++++ examples/simple/simple.cue | 4 +--- 2 files changed, 29 insertions(+), 3 deletions(-) create mode 100644 examples/react-netlify/main.cue diff --git a/examples/react-netlify/main.cue b/examples/react-netlify/main.cue new file mode 100644 index 00000000..1d7cd991 --- /dev/null +++ b/examples/react-netlify/main.cue @@ -0,0 +1,28 @@ +package main + +import ( + "dagger.io/dagger" + "dagger.io/netlify" + "dagger.io/yarn" +) + +repository: #dagger: compute: [ + dagger.#FetchGit & { + remote: "https://github.com/kabirbaidhya/react-todo-app.git" + ref: "624041b17bd62292143f99bce474a0e3c2d2dd61" + }, +] + +todoApp: netlify.#Site & { + account: { + name: "blocklayer" + token: string // Fill using --input-string todoApp.account.token=XXX + } + + name: "dagger-test" + + contents: yarn.#Script & { + source: repository + run: "build" + } +} diff --git a/examples/simple/simple.cue b/examples/simple/simple.cue index c691d79c..755c8509 100644 --- a/examples/simple/simple.cue +++ b/examples/simple/simple.cue @@ -1,6 +1,4 @@ -// ACME platform: everything you need to develop and ship improvements to -// the ACME clothing store. -package acme +package simple import ( "dagger.io/dagger"