WARNING: THIS SITE IS A MIRROR OF GITHUB.COM / IT CANNOT LOGIN OR REGISTER ACCOUNTS / THE CONTENTS ARE PROVIDED AS-IS / THIS SITE ASSUMES NO RESPONSIBILITY FOR ANY DISPLAYED CONTENT OR LINKS / IF YOU FOUND SOMETHING MAY NOT GOOD FOR EVERYONE, CONTACT ADMIN AT ilovescratch@foxmail.com
Skip to content

Commit e3e4bd8

Browse files
authored
Add github workflow to upload rocky 8 image for ongoing use (#642)
* Add github workflow to upload rocky 8 image for building * Activate github action during push/merge/tag * Update base cuda version to 12.4.1, we don't build for 11.8 any more
1 parent cdbf1ab commit e3e4bd8

File tree

2 files changed

+77
-1
lines changed

2 files changed

+77
-1
lines changed

.github/workflows/anaconda_pkg_build_linux_cuda.yml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -70,7 +70,7 @@ jobs:
7070
file: ./anaconda-pkg-build/linux/cuda/Dockerfile
7171
platforms: linux/amd64
7272
build-args: |
73-
CUDA_VERSION=11.8.0
73+
CUDA_VERSION=12.4.1
7474
tags: ${{ steps.meta.outputs.tags }}
7575
labels: ${{ steps.meta.outputs.labels }}
7676
push: ${{ github.ref == 'refs/heads/main' || startsWith(github.ref, 'refs/tags') }}
Lines changed: 76 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,76 @@
1+
name: Build and publish Linux CUDA package builder images
2+
on:
3+
push:
4+
branches:
5+
- main
6+
tags:
7+
- 'pkg-build-*'
8+
paths:
9+
- 'anaconda-pkg-build/linux/cuda-rocky8/Dockerfile'
10+
- '.github/workflows/anaconda_pkg_build_linux_cuda_rocky8.yml'
11+
pull_request:
12+
paths:
13+
- 'anaconda-pkg-build/linux/cuda-rocky8/Dockerfile'
14+
- '.github/workflows/anaconda_pkg_build_linux_cuda_rocky8.yml'
15+
workflow_dispatch:
16+
17+
jobs:
18+
build:
19+
runs-on: ubuntu-latest
20+
steps:
21+
- uses: actions/checkout@11bd71901bbe5b1630ceea73d27597364c9af683 # v4.2.2
22+
23+
- name: Login to DockerHub
24+
uses: docker/login-action@74a5d142397b4f367a81961eba4e8cd7edddf772 # v3.4.0
25+
if: github.ref == 'refs/heads/main' || startsWith(github.ref, 'refs/tags')
26+
with:
27+
username: ${{ secrets.DOCKERHUB_USERNAME }}
28+
password: ${{ secrets.DOCKERHUB_TOKEN }}
29+
30+
- name: Login to Public ECR
31+
uses: docker/login-action@74a5d142397b4f367a81961eba4e8cd7edddf772 # v3.4.0
32+
if: github.ref == 'refs/heads/main' || startsWith(github.ref, 'refs/tags')
33+
with:
34+
registry: public.ecr.aws
35+
username: ${{ secrets.AWS_ACCESS_KEY_ID }}
36+
password: ${{ secrets.AWS_SECRET_ACCESS_KEY }}
37+
env:
38+
AWS_REGION: us-east-1
39+
40+
- name: Set up QEMU
41+
uses: docker/setup-qemu-action@29109295f81e9208d7d86ff1c6c12d2833863392 # v3.6.0
42+
with:
43+
# https://github.com/docker/setup-qemu-action/issues/188#issuecomment-2604322104
44+
image: tonistiigi/binfmt:qemu-v8.1.5
45+
46+
- name: Set up Docker Buildx
47+
id: buildx
48+
uses: docker/setup-buildx-action@b5ca514318bd6ebac0fb2aedd5d36ec1b5c232a2 # v3.10.0
49+
with:
50+
version: latest
51+
driver-opts: network=host
52+
53+
- name: Docker meta
54+
id: meta
55+
uses: docker/metadata-action@902fa8ec7d6ecbf8d84d538b9b233a880e428804 # v5.7.0
56+
with:
57+
images: |
58+
continuumio/anaconda-pkg-build
59+
public.ecr.aws/y0o4y9o3/anaconda-pkg-build
60+
tags: |
61+
type=ref,event=branch,suffix=-cuda-rocky8
62+
type=ref,event=pr,suffix=-cuda-rocky8
63+
type=match,pattern=pkg-build-(.*),group=1,suffix=-cuda-rocky8
64+
65+
- name: build-push pkg-builder
66+
uses: docker/build-push-action@471d1dc4e07e5cdedd4c2171150001c434f0b7a4 # v6.15.0
67+
with:
68+
context: ./anaconda-pkg-build/linux/cuda-rocky8
69+
builder: ${{ steps.buildx.outputs.name }}
70+
file: ./anaconda-pkg-build/linux/cuda-rocky8/Dockerfile
71+
platforms: linux/amd64
72+
build-args: |
73+
CUDA_VERSION=12.4.1
74+
tags: ${{ steps.meta.outputs.tags }}
75+
labels: ${{ steps.meta.outputs.labels }}
76+
push: ${{ github.ref == 'refs/heads/main' || startsWith(github.ref, 'refs/tags') }}

0 commit comments

Comments
 (0)