-
Notifications
You must be signed in to change notification settings - Fork 34
52 lines (41 loc) · 1.54 KB
/
docker_pyafq.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
39
40
41
42
43
44
45
46
47
48
49
50
51
52
name: Build and Push pyAFQ Docker 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 docker image
run: sh ./pyafq_docker/docker-build.sh \
"${{github.sha}}" "nrdg"
- name: Build a tagged image
if: startsWith(github.event.ref, 'refs/tags')
run: |
sh ./pyafq_docker/docker-build.sh \
"${GITHUB_REF:10}" "nrdg"
- name: Build pyAFQ GPU docker image
run: sh ./gpu_docker/docker-build.sh \
"${{github.sha}}" "nrdg" "11.0.3-devel" "11"
- name: Build a tagged GPU image
if: startsWith(github.event.ref, 'refs/tags')
run: |
sh ./gpu_docker/docker-build.sh \
"${GITHUB_REF:10}" "nrdg" "11.0.3-devel" "11"
- 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 docker image
if: github.ref == 'refs/heads/master' || startsWith(github.event.ref, 'refs/tags')
run: sh ./pyafq_docker/docker-push.sh "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" "11"