Skip to content

GPU passthrough post #37

GPU passthrough post

GPU passthrough post #37

Workflow file for this run

---
name: image
on:
push:
branches: ["main"]
jobs:
image:
runs-on: ubuntu-latest
permissions:
contents: read
packages: write
steps:
- name: Set up QEMU
uses: docker/setup-qemu-action@v3
- name: Set up Docker Buildx
uses: docker/setup-buildx-action@v3
- name: Login to Docker Hub
uses: docker/login-action@v3
with:
registry: ghcr.io
username: ${{ github.actor }}
password: ${{ secrets.GITHUB_TOKEN }}
- name: Get lowercase username to use for image tag
run: |
echo "REPOSITORY_OWNER=${OWNER,,}" >> $GITHUB_ENV
env:
OWNER: "${{ github.repository_owner }}"
- name: Build and push
uses: docker/build-push-action@v6
with:
push: true
tags: ghcr.io/${{ env.REPOSITORY_OWNER }}/scratchpad