Skip to content
Open
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
23 changes: 23 additions & 0 deletions .github/workflows/build_images.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -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
# ├── <type> (snapshots, releases)
# │ ├── <flavor1>.tar
# │ ├── <flavor2>.tar
# │ └── ...
# └── ...
- name: Build images
uses: prefapp/run-dagger-py@main
id: build-images
Expand All @@ -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 }}"
Expand Down