Skip to content

Workflow file for this run

name: Run dagger to build and publish cuda images to ghcr.io
on:
push:
branches: [main]
jobs:
build-publish:
runs-on: ubuntu-latest
permissions:
contents: read
packages: write
steps:
- name: Checkout
uses: actions/checkout@v4
- name: Install deps
run: pip install dagger-io
- name: Install Dagger CLI
run: cd /usr/local && { curl -L https://dl.dagger.io/dagger/install.sh | sh; cd -; }
- name: Convert repository owner and repository name to lowercase
run: |
echo "REPOSITORY_OWNER=$(echo ${{ github.repository_owner }} | tr '[:upper:]' '[:lower:]')" >> $GITHUB_ENV
- name: Run dagger pipeline
run: python main.py
env:
username: ${{ env.REPOSITORY_OWNER }}
password: ${{ secrets.GH_PAT }}