Skip to content

Fix broken --version option, add CI test, cleanup and simplify relate… #306

Fix broken --version option, add CI test, cleanup and simplify relate…

Fix broken --version option, add CI test, cleanup and simplify relate… #306

Workflow file for this run

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"