-
Notifications
You must be signed in to change notification settings - Fork 34
38 lines (30 loc) · 1.1 KB
/
docker_pyafq_cuda12.yml
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
name: Build and Push pyAFQ CUDA12 Image
on: [push, pull_request]
jobs:
build:
runs-on: ubuntu-latest
steps:
- name: Set up QEMU
uses: docker/setup-qemu-action@v1
- name: Set up Docker Buildx
uses: docker/setup-buildx-action@v1
- name: Checkout repo
uses: actions/checkout@v1
- name: Build pyAFQ GPU docker image
run: sh ./gpu_docker/docker-build.sh \
"${{github.sha}}" "nrdg" "12.0.1-devel-ubuntu20.04" "12"
- name: Build a tagged GPU image
if: startsWith(github.event.ref, 'refs/tags')
run: |
sh ./gpu_docker/docker-build.sh \
"${GITHUB_REF:10}" "nrdg" "12.0.1-devel-ubuntu20.04" "12"
- name: Login to GHCR
if: github.ref == 'refs/heads/master' || startsWith(github.event.ref, 'refs/tags')
uses: docker/login-action@v1
with:
registry: ghcr.io
username: nrdg
password: ${{secrets.CR_PAT_NRDG}}
- name: Push pyAFQ GPU docker image
if: github.ref == 'refs/heads/master' || startsWith(github.event.ref, 'refs/tags')
run: sh ./gpu_docker/docker-push.sh "nrdg" "12"