Skip to content

Commit

Permalink
use Dagger v0.9.3
Browse files Browse the repository at this point in the history
  • Loading branch information
tsirysndr committed Nov 17, 2023
1 parent 6302fc9 commit 3e02550
Show file tree
Hide file tree
Showing 15 changed files with 78 additions and 111 deletions.
12 changes: 2 additions & 10 deletions .github/workflows/ci.yml
Original file line number Diff line number Diff line change
Expand Up @@ -10,16 +10,8 @@ jobs:
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@v2
- uses: denoland/setup-deno@v1
with:
deno-version: v1.37
- name: Setup Fluent CI CLI
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.8 sh
sudo mv bin/dagger /usr/local/bin
dagger version
- name: Setup Fluent CI
uses: fluentci-io/setup-fluentci@v2
- name: Run Dagger Pipelines
run: fluentci run deno_pipeline
- name: Upload to Codecov
Expand Down
2 changes: 1 addition & 1 deletion README.md
Original file line number Diff line number Diff line change
Expand Up @@ -76,7 +76,7 @@ validate(src: String!, tfVersion: String): String
You can also use this pipeline programmatically:

```ts
import { validate, apply } from "https://pkg.fluentci.io/terragrunt_pipeline@v0.4.1/mod.ts";
import { validate, apply } from "https://pkg.fluentci.io/terragrunt_pipeline@v0.5.0/mod.ts";

await validate();
await apply();
Expand Down
2 changes: 1 addition & 1 deletion ci.ts
Original file line number Diff line number Diff line change
@@ -1,7 +1,7 @@
import {
validate,
apply,
} from "https://pkg.fluentci.io/terragrunt_pipeline@v0.4.1/mod.ts";
} from "https://pkg.fluentci.io/terragrunt_pipeline@v0.5.0/mod.ts";

await validate();
await apply();
120 changes: 59 additions & 61 deletions deno.lock

Large diffs are not rendered by default.

6 changes: 3 additions & 3 deletions deps.ts
Original file line number Diff line number Diff line change
@@ -1,15 +1,15 @@
export { assertEquals } from "https://deno.land/std@0.191.0/testing/asserts.ts";
import Client from "https://sdk.fluentci.io/z1/mod.ts";
import Client from "https://sdk.fluentci.io/v0.3.0/mod.ts";
export default Client;

export {
connect,
uploadContext,
CacheSharingMode,
Container,
} from "https://sdk.fluentci.io/z1/mod.ts";
} from "https://sdk.fluentci.io/v0.3.0/mod.ts";
export { brightGreen } from "https://deno.land/std@0.191.0/fmt/colors.ts";
export { withDevbox } from "https://nix.fluentci.io/zenith/src/dagger/steps.ts";
export { withDevbox } from "https://nix.fluentci.io/v0.5.3/src/dagger/steps.ts";
export { stringifyTree } from "https://esm.sh/stringify-tree@1.1.1";
import gql from "https://esm.sh/graphql-tag@2.12.6";
export { gql };
Expand Down
2 changes: 1 addition & 1 deletion fixtures/.gitlab-ci.yml
Original file line number Diff line number Diff line change
Expand Up @@ -17,7 +17,7 @@
before_script:
- apk add docker-cli curl unzip
- deno install -A -r https://cli.fluentci.io -n fluentci
- 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.9.3 sh
- mv bin/dagger /usr/local/bin
- dagger version

Expand Down
2 changes: 1 addition & 1 deletion fixtures/azure-pipelines.yml
Original file line number Diff line number Diff line change
Expand Up @@ -14,7 +14,7 @@ steps:
- script: deno install -A -r https://cli.fluentci.io -n fluentci
displayName: Setup Fluent CI CLI
- script: |
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.9.3 sh
sudo mv bin/dagger /usr/local/bin
dagger version
displayName: Setup Dagger
Expand Down
2 changes: 1 addition & 1 deletion fixtures/buildspec.yml
Original file line number Diff line number Diff line change
Expand Up @@ -8,7 +8,7 @@ phases:
- export DENO_INSTALL="$HOME/.deno"
- export PATH="$DENO_INSTALL/bin:$PATH"
- deno install -A -r https://cli.fluentci.io -n fluentci
- 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.9.3 sh
- mv bin/dagger /usr/local/bin
- dagger version
build:
Expand Down
2 changes: 1 addition & 1 deletion fixtures/config.yml
Original file line number Diff line number Diff line change
Expand Up @@ -12,7 +12,7 @@ jobs:
export PATH="$DENO_INSTALL/bin:$PATH"
- run: deno install -A -r https://cli.fluentci.io -n fluentci
- 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.9.3 sh
sudo mv bin/dagger /usr/local/bin
dagger version
- run:
Expand Down
12 changes: 2 additions & 10 deletions fixtures/workflow.yml
Original file line number Diff line number Diff line change
Expand Up @@ -10,15 +10,7 @@ jobs:
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@v2
- uses: denoland/setup-deno@v1
with:
deno-version: v1.37
- name: Setup Fluent CI CLI
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
sudo mv bin/dagger /usr/local/bin
dagger version
- name: Setup Fluent CI
uses: fluentci-io/setup-fluentci@v2
- name: Run Dagger Pipelines
run: fluentci run terragrunt_pipeline
2 changes: 1 addition & 1 deletion src/aws/config.ts
Original file line number Diff line number Diff line change
Expand Up @@ -9,7 +9,7 @@ export function generateYaml(): BuildSpec {
'export DENO_INSTALL="$HOME/.deno"',
'export PATH="$DENO_INSTALL/bin:$PATH"',
"deno install -A -r https://cli.fluentci.io -n fluentci",
"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.9.3 sh",
"mv bin/dagger /usr/local/bin",
"dagger version",
],
Expand Down
2 changes: 1 addition & 1 deletion src/azure/config.ts
Original file line number Diff line number Diff line change
Expand Up @@ -10,7 +10,7 @@ export function generateYaml(): AzurePipeline {
`;

const setupDagger = `\
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.9.3 sh
sudo mv bin/dagger /usr/local/bin
dagger version
`;
Expand Down
2 changes: 1 addition & 1 deletion src/circleci/config.ts
Original file line number Diff line number Diff line change
Expand Up @@ -19,7 +19,7 @@ export PATH="$DENO_INSTALL/bin:$PATH"`,
},
{
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.9.3 sh
sudo mv bin/dagger /usr/local/bin
dagger version`,
},
Expand Down
19 changes: 2 additions & 17 deletions src/github/config.ts
Original file line number Diff line number Diff line change
Expand Up @@ -7,30 +7,15 @@ export function generateYaml(): Workflow {
branches: ["main"],
};

const setupDagger = `\
curl -L https://dl.dagger.io/dagger/install.sh | DAGGER_VERSION=0.8.1 sh
sudo mv bin/dagger /usr/local/bin
dagger version`;

const apply: JobSpec = {
"runs-on": "ubuntu-latest",
steps: [
{
uses: "actions/checkout@v2",
},
{
uses: "denoland/setup-deno@v1",
with: {
"deno-version": "v1.37",
},
},
{
name: "Setup Fluent CI CLI",
run: "deno install -A -r https://cli.fluentci.io -n fluentci",
},
{
name: "Setup Dagger",
run: setupDagger,
name: "Setup Fluent CI",
uses: "fluentci-io/setup-fluentci@v2",
},
{
name: "Run Dagger Pipelines",
Expand Down
2 changes: 1 addition & 1 deletion src/gitlab/config.ts
Original file line number Diff line number Diff line change
Expand Up @@ -17,7 +17,7 @@ export function generateYaml(): GitlabCI {
`
apk add docker-cli curl unzip
deno install -A -r https://cli.fluentci.io -n fluentci
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.9.3 sh
mv bin/dagger /usr/local/bin
dagger version
`
Expand Down

0 comments on commit 3e02550

Please sign in to comment.