Skip to content

Commit

Permalink
Merge pull request openmeterio#997 from openmeterio/dagger-logs
Browse files Browse the repository at this point in the history
ci: add engine log export
  • Loading branch information
sagikazarmark authored Jun 10, 2024
2 parents c4f1a94 + bf910db commit fc97e27
Showing 1 changed file with 13 additions and 0 deletions.
13 changes: 13 additions & 0 deletions .github/workflows/ci.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -236,9 +236,22 @@ jobs:

- name: Run pipeline
uses: dagger/dagger-for-github@158efd19b6af5ff000289d6c7c507ada3c7b3b9b # v5.8.0
timeout-minutes: 40
with:
verb: call
module: github.com/${{ github.repository }}@${{ github.ref }}
args: --ref ${{ github.ref }} ci
cloud-token: ${{ secrets.DAGGER_CLOUD_TOKEN }}
version: ${{ env.DAGGER_VERSION }}

- name: Export Dagger Engine logs
run: docker logs $(docker ps -q -f name=dagger-engine-) > engine.log
if: always()

- name: Upload Dagger Engine logs as artifact
uses: actions/upload-artifact@c7d193f32edcb7bfad88892161225aeda64e9392 # v4.0.0
if: always()
with:
name: "Dagger Engine logs"
path: engine.log
retention-days: 14

0 comments on commit fc97e27

Please sign in to comment.