Skip to content

Commit

Permalink
cuda 12-1 build
Browse files Browse the repository at this point in the history
  • Loading branch information
PicoCreator authored Feb 3, 2024
1 parent 00274ed commit 021424f
Show file tree
Hide file tree
Showing 2 changed files with 12 additions and 12 deletions.
22 changes: 11 additions & 11 deletions .github/workflows/docker-build.yml
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
name: Docker Env Image (cuda-12-3)
name: Docker Env Image (cuda-12-1)

on:
push:
Expand All @@ -21,7 +21,7 @@ env:

jobs:
build_env:
name: Docker Env Image (cuda-12-3)
name: Docker Env Image (cuda-12-1)

runs-on: ubuntu-latest
permissions:
Expand Down Expand Up @@ -103,20 +103,20 @@ jobs:
# Build and push Docker image with Buildx (don't push on PR)
# https://github.com/docker/build-push-action
- name: Build and push Docker image (env-cuda-12-3)
- name: Build and push Docker image (env-cuda-12-1)
id: build-and-push
uses: docker/build-push-action@v4
with:
context: "{{defaultContext}}:docker/env-cuda-12-3"
context: "{{defaultContext}}:docker/env-cuda-12-1"
push: ${{ github.event_name != 'pull_request' }} # Don't push on PR
tags: ${{ env.REGISTRY }}/${{ env.IMAGE_NAME_LC }}:env-cuda-12-3
tags: ${{ env.REGISTRY }}/${{ env.IMAGE_NAME_LC }}:env-cuda-12-1
# tags: ${{ steps.meta.outputs.tags }}
labels: ${{ steps.meta.outputs.labels }}
cache-from: type=gha,src=docker/env-cuda-12-3
cache-from: type=gha,src=docker/env-cuda-12-1
cache-to: type=gha,mode=max

# build_runner:
# name: Docker Env Image (github-worker-12-3)
# name: Docker Env Image (github-worker-12-1)

# needs: build_env
# runs-on: ubuntu-latest
Expand Down Expand Up @@ -199,14 +199,14 @@ jobs:

# # Build and push Docker image with Buildx (don't push on PR)
# # https://github.com/docker/build-push-action
# - name: Build and push Docker image (github-worker-cuda-12-3)
# - name: Build and push Docker image (github-worker-cuda-12-1)
# id: build-and-push
# uses: docker/build-push-action@v4
# with:
# context: "{{defaultContext}}:docker/github-worker-cuda-12-3"
# context: "{{defaultContext}}:docker/github-worker-cuda-12-1"
# push: ${{ github.event_name != 'pull_request' }} # Don't push on PR
# tags: ${{ env.REGISTRY }}/${{ env.IMAGE_NAME_LC }}:github-worker-cuda-12-3
# tags: ${{ env.REGISTRY }}/${{ env.IMAGE_NAME_LC }}:github-worker-cuda-12-1
# # tags: ${{ steps.meta.outputs.tags }}
# labels: ${{ steps.meta.outputs.labels }}
# cache-from: type=gha,src=docker/github-worker-cuda-12-3
# cache-from: type=gha,src=docker/github-worker-cuda-12-1
# cache-to: type=gha,mode=max
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
# We start from the CUDA base image
# todo: consider other base images?
FROM nvidia/12.3.1-devel-ubuntu20.04
FROM nvidia/cuda:12.1.1-devel-ubuntu22.04

# Install ninja, and several common stuff
RUN apt-get update && \
Expand Down

0 comments on commit 021424f

Please sign in to comment.