-
Notifications
You must be signed in to change notification settings - Fork 350
38 lines (34 loc) · 1.08 KB
/
docker-build.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
name: docker build
on: [push, pull_request]
concurrency:
group: ${{ github.workflow }}-${{ github.event.pull_request.number || github.ref }}
cancel-in-progress: true
jobs:
build:
runs-on: ubuntu-20.04
steps:
-
uses: actions/checkout@v1
-
name: "Set up Python"
uses: actions/setup-python@v4
with:
python-version: 3.9
-
name: "Preparing a host container"
run: "docker build -t pycbc-docker-tmp ."
-
name: "Installing PyCBC and dependencies"
run: "docker run --privileged --name pycbc_inst -v `pwd`:/scratch pycbc-docker-tmp /bin/bash -c /scratch/docker/etc/docker-install.sh"
-
env:
DOCKER_IMG: pycbc/pycbc-el8
name: "Running docker commit"
run: "bash -e docker/etc/docker_commit.sh"
-
env:
DOCKER_IMG: pycbc/pycbc-el8
DOCKER_PASSWORD: "${{secrets.DOCKERHUB_PASSWORD}}"
DOCKER_USERNAME: "${{secrets.DOCKERHUB_USERNAME}}"
name: "Pushing docker image"
run: "bash -e docker/etc/push_image.sh"