This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
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 }} |