diff --git a/.github/workflows/build_images.yaml b/.github/workflows/build_images.yaml index a04b4be8..b311bc47 100644 --- a/.github/workflows/build_images.yaml +++ b/.github/workflows/build_images.yaml @@ -102,6 +102,28 @@ jobs: with: path: config + + - name: Execute Generic CI Workflow + uses: dagger/dagger-for-github@v6 + with: + module: github.com/prefapp/daggerverse/generic-ci@generic-ci-v1.0.0 + call: run-tasks \ # <-- Function to call + --project-dir=build \ # <-- Project directory (where the code is) + --task=build \ # <-- Task to execute + --flavors=${{ inputs.flavors }} \ # <-- Flavors to build (comma separated) + --tasks-file=/config/Tasksfile.yaml \ # <-- Tasks file + --build-images=/config/build_images.yaml \ # <-- Build images file + --type=${{ inputs.type }} \ # <-- Type of image to build (snapshots, releases) + directory --path /tarballs export --path=/tmp/tarballs # <-- Export the tarballs to /tmp/tarballs + + # It will leave the tarballs in /tmp/tarballs with the following structure: + + # /tmp/tarballs + # ├── (snapshots, releases) + # │ ├── .tar + # │ ├── .tar + # │ └── ... + # └── ... - name: Build images uses: prefapp/run-dagger-py@main id: build-images @@ -112,6 +134,7 @@ jobs: workflows_repository: ${{ inputs.workflows_repo }} workflows_repository_ref: ${{ inputs.workflows_repo_ref }} vars: | + tarballs_dir="/tmp/tarballs" repo_name="${{ github.repository }}" flavors="${{ inputs.flavors }}" auth_strategy="${{ inputs.auth_strategy }}"