-
Notifications
You must be signed in to change notification settings - Fork 69
40 lines (37 loc) · 1.36 KB
/
docker-image.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
# name: Docker tutorial images
# # Builds images with DOLFINx and all of the required FEniCS Project
# # components nightly.
on:
# Uncomment the below to trigger 'docker build' on push
# push:
# branches:
# - "dokken/jupyterbook"
# schedule:
# # '*' is a special character in YAML, so string must be quoted
# - cron: "0 6 * * *"
workflow_dispatch: ~
jobs:
build_end_user_images:
name: Build DOLFINx tutorial images for binder
if: ${{ github.repository == 'jorgensd/dolfinx-tutorial' && github.ref == 'refs/heads/dokken/jupyterbook' }}
runs-on: ubuntu-20.04
env:
HDF5_MPI: "ON"
CC: "mpicc"
HDF5_DIR: "/usr/lib/x86_64-linux-gnu/hdf5/mpich/"
steps:
- uses: actions/checkout@v2
with:
repository: "jorgensd/dolfinx-tutorial"
path: "tutorial"
- name: Pull dolfinx/dolfinx
run: |
docker pull dolfinx/dolfinx
- name: Build the Docker images
run: |
docker build --file tutorial/docker/Dockerfile --cache-from dolfinx/dolfinx --tag dokken92/dolfinx_custom:10042021 .
- name: Log into the DockerHub registry
run: echo ${{ secrets.DOCKERHUB_TOKEN }} | docker login -u ${{ secrets.DOCKERHUB_USERNAME }} --password-stdin
- name: Push to the DockerHub registry
run: |
docker push dokken92/dolfinx_custom:07012022