Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

ci: get dagger version from repo #1753

Draft
wants to merge 1 commit into
base: main
Choose a base branch
from
Draft
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
33 changes: 25 additions & 8 deletions .github/workflows/ci.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -8,9 +8,6 @@ on:
permissions:
contents: read

env:
DAGGER_VERSION: 0.13.6

jobs:
build:
name: Build
Expand Down Expand Up @@ -82,13 +79,17 @@ jobs:
with:
fetch-depth: 0 # Needed to compare against base branch

- name: Get Dagger version
id: dagger_version
uses: sagikazarmark/dagger-version-action@b45495ba1f5621efbbf899a218c8b5eec69901d2 # v0.0.1

- name: Run pipeline
uses: dagger/dagger-for-github@6b6e9832f7dffd6cd9cdd989a577bb2cbfc45432 # v6.13.0
with:
verb: call
args: migrate check
cloud-token: ${{ secrets.DAGGER_CLOUD_TOKEN }}
version: ${{ env.DAGGER_VERSION }}
version: ${{ steps.dagger_version.outputs.version }}

- name: Export Dagger Engine logs
id: export-dagger-engine-logs
Expand All @@ -115,13 +116,17 @@ jobs:
- name: Checkout repository
uses: actions/checkout@eef61447b9ff4aafe5dcd4e0bbf5d482be7e7871 # v4.2.1

- name: Get Dagger version
id: dagger_version
uses: sagikazarmark/dagger-version-action@b45495ba1f5621efbbf899a218c8b5eec69901d2 # v0.0.1

- name: Run pipeline
uses: dagger/dagger-for-github@6b6e9832f7dffd6cd9cdd989a577bb2cbfc45432 # v6.13.0
with:
verb: call
args: lint all
cloud-token: ${{ secrets.DAGGER_CLOUD_TOKEN }}
version: ${{ env.DAGGER_VERSION }}
version: ${{ steps.dagger_version.outputs.version }}

- name: Export Dagger Engine logs
id: export-dagger-engine-logs
Expand Down Expand Up @@ -235,6 +240,10 @@ jobs:
- name: Checkout repository
uses: actions/checkout@eef61447b9ff4aafe5dcd4e0bbf5d482be7e7871 # v4.2.1

- name: Get Dagger version
id: dagger_version
uses: sagikazarmark/dagger-version-action@b45495ba1f5621efbbf899a218c8b5eec69901d2 # v0.0.1

- name: Launch Docker Compose
run: docker compose -f docker-compose.yaml -f docker-compose.ci.yaml up -d
working-directory: quickstart
Expand All @@ -253,7 +262,7 @@ jobs:
verb: call
args: --source .:default quickstart-test --service tcp://localhost:8888 --port 8888
cloud-token: ${{ secrets.DAGGER_CLOUD_TOKEN }}
version: ${{ env.DAGGER_VERSION }}
version: ${{ steps.dagger_version.outputs.version }}

- name: Export Container Logs
id: export-container-logs
Expand Down Expand Up @@ -285,13 +294,17 @@ jobs:
- name: Checkout repository
uses: actions/checkout@eef61447b9ff4aafe5dcd4e0bbf5d482be7e7871 # v4.2.1

- name: Get Dagger version
id: dagger_version
uses: sagikazarmark/dagger-version-action@b45495ba1f5621efbbf899a218c8b5eec69901d2 # v0.0.1

- name: Run pipeline
uses: dagger/dagger-for-github@6b6e9832f7dffd6cd9cdd989a577bb2cbfc45432 # v6.13.0
with:
verb: call
args: etoe
cloud-token: ${{ secrets.DAGGER_CLOUD_TOKEN }}
version: ${{ env.DAGGER_VERSION }}
version: ${{ steps.dagger_version.outputs.version }}

- name: Export Dagger Engine logs
id: export-dagger-engine-logs
Expand All @@ -318,13 +331,17 @@ jobs:
- name: Checkout repository
uses: actions/checkout@eef61447b9ff4aafe5dcd4e0bbf5d482be7e7871 # v4.2.1

- name: Get Dagger version
id: dagger_version
uses: sagikazarmark/dagger-version-action@b45495ba1f5621efbbf899a218c8b5eec69901d2 # v0.0.1

- name: Run pipeline
uses: dagger/dagger-for-github@6b6e9832f7dffd6cd9cdd989a577bb2cbfc45432 # v6.13.0
with:
verb: call
args: ci
cloud-token: ${{ secrets.DAGGER_CLOUD_TOKEN }}
version: ${{ env.DAGGER_VERSION }}
version: ${{ steps.dagger_version.outputs.version }}

- name: Export Dagger Engine logs
id: export-dagger-engine-logs
Expand Down