From 4dfab6bf49c59a99365c341f1ee82d7df060131d Mon Sep 17 00:00:00 2001 From: Ekin Barut Date: Thu, 31 Mar 2022 16:48:37 +0300 Subject: [PATCH 1/2] fixed the sample github action in the documentation Signed-off-by: ekinbarut Signed-off-by: ekinbarut --- docs/tests/getting-started/github-actions.yml | 15 +++++++++++++-- 1 file changed, 13 insertions(+), 2 deletions(-) diff --git a/docs/tests/getting-started/github-actions.yml b/docs/tests/getting-started/github-actions.yml index 0eb072e8..beb70612 100644 --- a/docs/tests/getting-started/github-actions.yml +++ b/docs/tests/getting-started/github-actions.yml @@ -23,9 +23,20 @@ jobs: - name: Clone repository uses: actions/checkout@v2 + - name: Project init + uses: dagger/dagger-for-github@v2 + # See all options at https://github.com/dagger/dagger-for-github + with: + args: project init + + - name: Project update + uses: dagger/dagger-for-github@v2 + # See all options at https://github.com/dagger/dagger-for-github + with: + args: project update + - name: Deploy to Netlify uses: dagger/dagger-for-github@v2 # See all options at https://github.com/dagger/dagger-for-github with: - workdir: pkg/universe.dagger.io/examples/todoapp - args: do deploy + args: do deploy \ No newline at end of file From 2ed94758d8b46092cca4767673a1c7b8311a5de8 Mon Sep 17 00:00:00 2001 From: ekinbarut Date: Fri, 1 Apr 2022 21:32:37 +0300 Subject: [PATCH 2/2] removed project init from the ci and pinned update version Signed-off-by: ekinbarut --- docs/tests/getting-started/github-actions.yml | 12 ++++-------- 1 file changed, 4 insertions(+), 8 deletions(-) diff --git a/docs/tests/getting-started/github-actions.yml b/docs/tests/getting-started/github-actions.yml index beb70612..58728685 100644 --- a/docs/tests/getting-started/github-actions.yml +++ b/docs/tests/getting-started/github-actions.yml @@ -23,20 +23,16 @@ jobs: - name: Clone repository uses: actions/checkout@v2 - - name: Project init - uses: dagger/dagger-for-github@v2 - # See all options at https://github.com/dagger/dagger-for-github - with: - args: project init - + # You need to run `dagger project init` locally before and commit the cue.mod directory to the repository with its contents - name: Project update uses: dagger/dagger-for-github@v2 - # See all options at https://github.com/dagger/dagger-for-github with: + version: 0.2 + # To pin external dependencies, you can use `project update github.com/[package-source]@v[n]` args: project update - name: Deploy to Netlify uses: dagger/dagger-for-github@v2 # See all options at https://github.com/dagger/dagger-for-github with: - args: do deploy \ No newline at end of file + args: do deploy