first container code (#52)

This commit is contained in:
Benson Wong
2025-02-14 10:39:25 -08:00
committed by GitHub
parent 13d4552edc
commit ab93460a8b
3 changed files with 75 additions and 0 deletions

30
.github/workflows/containers.yml vendored Normal file
View File

@@ -0,0 +1,30 @@
name: Build and Push Images
on:
# schedule:
# - cron: "0 11 * * *" # Runs daily at 11 AM UTC (3 AM PST)
# push:
# tags:
# - "*" # Triggers on any new tag
workflow_dispatch: # Allows manual triggering of the workflow
jobs:
build-and-push:
runs-on: ubuntu-latest
strategy:
matrix:
platform: [cuda, vulkan]
#platform: [intel, cuda, vulkan, musa]
steps:
- name: Checkout code
uses: actions/checkout@v4
- name: Log in to GitHub Container Registry
uses: docker/login-action@v2
with:
registry: ghcr.io
username: ${{ github.actor }}
password: ${{ secrets.GITHUB_TOKEN }}
- name: Run build-image script
run: ./docker/build-container.sh ${{ matrix.platform }}