Skip to content

Commit

Permalink
docker: nvidia build
Browse files Browse the repository at this point in the history
  • Loading branch information
Koushik Dutta authored and Koushik Dutta committed May 3, 2024
1 parent a0e5dd4 commit 31fd833
Showing 1 changed file with 30 additions and 0 deletions.
30 changes: 30 additions & 0 deletions .github/workflows/docker.yml
Original file line number Diff line number Diff line change
Expand Up @@ -93,3 +93,33 @@ jobs:
${{ github.event.inputs.tag == 'latest' && matrix.BASE == '20-jammy-lite' && matrix.SUPERVISOR == '.s6' && 'ghcr.io/koush/scrypted:lite-s6' || '' }}
cache-from: type=gha
cache-to: type=gha,mode=max

build-nvidia:
needs: build
runs-on: ubuntu-latest
steps:
- name: NPM Package Request
id: npm-request
uses: fjogeleit/http-request-action@v1
with:
url: 'https://registry.npmjs.org/@scrypted/server'
method: 'GET'

- name: Set NPM Version
id: package-version
run: echo "NPM_VERSION=${{ fromJson(steps.npm-request.outputs.response)['dist-tags'][ github.event.inputs.tag] }}" >> "$GITHUB_OUTPUT"

- name: Build and push NVIDIA Docker image
uses: docker/build-push-action@v4
with:
build-args: |
BASE=ghcr.io/koush/scrypted:20-jammy-full.s6-v${{ steps.package-version.outputs.NPM_VERSION }}
context: install/docker/
file: install/docker/Dockerfile.nvidia
platforms: linux/amd64,linux/arm64
push: true
tags: |
koush/scrypted:nvidia-v${{ steps.package-version.outputs.NPM_VERSION }}
ghcr.io/koush/scrypted:nvidia-v${{ steps.package-version.outputs.NPM_VERSION }}
cache-from: type=gha
cache-to: type=gha,mode=max

0 comments on commit 31fd833

Please sign in to comment.