diff --git a/.github/workflows/ci.yaml b/.github/workflows/ci.yaml index 10cffbe52..d55ecfb8f 100644 --- a/.github/workflows/ci.yaml +++ b/.github/workflows/ci.yaml @@ -8,9 +8,6 @@ on: permissions: contents: read -env: - DAGGER_VERSION: 0.13.6 - jobs: build: name: Build @@ -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 @@ -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 @@ -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 @@ -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 @@ -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 @@ -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