diff --git a/.circleci/config.yml b/.circleci/config.yml index ef9d51d..7b5d86d 100644 --- a/.circleci/config.yml +++ b/.circleci/config.yml @@ -13,7 +13,7 @@ jobs: command: cd /usr/local && { curl -L https://dl.dagger.io/dagger/install.sh | sudo sh; cd -; } - run: name: Dagger Test Pipeline - command: dagger call --progress plain ci --source https://github.com/kpenfound/greetings-api\#${CIRCLE_SHA1} + command: dagger call --progress plain all --source https://github.com/kpenfound/greetings-api\#${CIRCLE_SHA1} workflows: test: jobs: diff --git a/.github/workflows/release.yml b/.github/workflows/release.yml index ed706f9..793c5af 100644 --- a/.github/workflows/release.yml +++ b/.github/workflows/release.yml @@ -11,7 +11,7 @@ jobs: - name: Dagger uses: kpenfound/dagger-action@main with: - args: ci --source https://github.com/kpenfound/greetings-api\#${GITHUB_REF_NAME} --release --tag $GITHUB_REF_NAME --infisical-token ${{ secrets.INFISICAL_TOKEN }} --infisical-project 6545b34313c9b9239b0f7183 + args: all --source https://github.com/kpenfound/greetings-api\#${GITHUB_REF_NAME} --release --tag $GITHUB_REF_NAME --infisical-token ${{ secrets.INFISICAL_TOKEN }} --infisical-project 6545b34313c9b9239b0f7183 module: github.com/kpenfound/greetings-api cloud-token: ${{ secrets.DAGGER_CLOUD_TOKEN }} version: "0.10.2" diff --git a/.github/workflows/test.yml b/.github/workflows/test.yml index 37e9a87..7e78e63 100644 --- a/.github/workflows/test.yml +++ b/.github/workflows/test.yml @@ -10,6 +10,6 @@ jobs: - name: Dagger uses: kpenfound/dagger-action@main with: - args: ci --source https://github.com/kpenfound/greetings-api\#${GITHUB_REF_NAME} + args: all --source https://github.com/kpenfound/greetings-api\#${GITHUB_REF_NAME} module: github.com/kpenfound/greetings-api cloud-token: ${{ secrets.DAGGER_CLOUD_TOKEN }} diff --git a/DEMO.md b/DEMO.md index aa54ee1..0ededf1 100644 --- a/DEMO.md +++ b/DEMO.md @@ -83,10 +83,10 @@ Secrets are retrieved at runtime from Infisical, a SaaS Secret Manager Create a release of the project -`dagger call ci --source . --release --infisical-token $TOKEN` +`dagger call all --source . --release --infisical-token $TOKEN` ### CI without cloning the project/branch Run the CI without even checking out a branch -`dagger -m github.com/kpenfound/greetings-api call ci --source https://github.com/kpenfound/greetings-api#main --release --infisical-token $TOKEN` +`dagger -m github.com/kpenfound/greetings-api call all --source https://github.com/kpenfound/greetings-api#main --release --infisical-token $TOKEN` diff --git a/ci/main.go b/ci/main.go index 240c6a4..f587ce0 100644 --- a/ci/main.go +++ b/ci/main.go @@ -103,7 +103,7 @@ func (g *Greetings) Deploy(ctx context.Context, source *Directory, flyToken *Sec } // Run the whole CI pipeline -func (g *Greetings) Ci( +func (g *Greetings) All( ctx context.Context, source *Directory, // +optional diff --git a/main.go b/main.go index a019ee6..95a6d14 100644 --- a/main.go +++ b/main.go @@ -41,6 +41,6 @@ func main() { } func greeting() string { - greeting := "Hello Daggernauts!" + greeting := "Greetings Daggernauts!" return fmt.Sprintf("{\"greeting\":\"%s\"}", greeting) } diff --git a/main_test.go b/main_test.go index c4431f1..fe1615d 100644 --- a/main_test.go +++ b/main_test.go @@ -8,7 +8,7 @@ import ( func TestGreeting(t *testing.T) { g := greeting() - should := "{\"greeting\":\"Hello Daggernauts!\"}" + should := "{\"greeting\":\"Greetings Daggernauts!\"}" assert.Equal(t, should, g) }