From c6176b40b56ee472d756a67642c1756c9c0a4879 Mon Sep 17 00:00:00 2001 From: Tsiry Sandratraina Date: Sun, 22 Oct 2023 07:27:54 +0000 Subject: [PATCH] ci: use dagger v0.8.8 --- .github/workflows/ci.yml | 2 +- README.md | 7 ++++++- ci.ts | 13 +++---------- 3 files changed, 10 insertions(+), 12 deletions(-) diff --git a/.github/workflows/ci.yml b/.github/workflows/ci.yml index 163fbe3..d9bfe59 100644 --- a/.github/workflows/ci.yml +++ b/.github/workflows/ci.yml @@ -17,7 +17,7 @@ jobs: run: deno install -A -r https://cli.fluentci.io -n fluentci - name: Setup Dagger run: | - curl -L https://dl.dagger.io/dagger/install.sh | DAGGER_VERSION=0.8.1 sh + curl -L https://dl.dagger.io/dagger/install.sh | DAGGER_VERSION=0.8.8 sh sudo mv bin/dagger /usr/local/bin dagger version - name: Run Dagger Pipelines diff --git a/README.md b/README.md index 7f0e148..aac6edc 100644 --- a/README.md +++ b/README.md @@ -1,7 +1,7 @@ # Terragrunt Pipeline [![fluentci pipeline](https://img.shields.io/badge/dynamic/json?label=pkg.fluentci.io&labelColor=%23000&color=%23460cf1&url=https%3A%2F%2Fapi.fluentci.io%2Fv1%2Fpipeline%2Fterragrunt_pipeline&query=%24.version)](https://pkg.fluentci.io/terragrunt_pipeline) -![deno compatibility](https://shield.deno.dev/deno/^1.34) +![deno compatibility](https://shield.deno.dev/deno/^1.37) [![](https://img.shields.io/codecov/c/gh/fluent-ci-templates/terragrunt-pipeline)](https://codecov.io/gh/fluent-ci-templates/terragrunt-pipeline) A ready-to-use CI/CD Pipeline for managing your infrastructure with [Terragrunt](https://terragrunt.gruntwork.io/). @@ -66,6 +66,11 @@ fluentci run . | validate | Validate the configuration files | | apply | Apply infrastructure changes | +```graphql +apply(src: String!, tfVersion: String): String +validate(src: String!, tfVersion: String): String +``` + ## Programmatic usage You can also use this pipeline programmatically: diff --git a/ci.ts b/ci.ts index e47e6db..8f5e343 100644 --- a/ci.ts +++ b/ci.ts @@ -1,14 +1,7 @@ -import Client, { connect } from "https://sdk.fluentci.io/v0.1.9/mod.ts"; import { validate, apply, -} from "https://pkg.fluentci.io/terragrunt_pipeline@v0.3.1/mod.ts"; +} from "https://pkg.fluentci.io/terragrunt_pipeline@v0.4.0/mod.ts"; -function pipeline(src = ".") { - connect(async (client: Client) => { - await validate(client, src); - await apply(client, src); - }); -} - -pipeline(); +await validate(); +await apply();