mirror of
https://github.com/openmc-dev/openmc.git
synced 2026-07-28 06:05:58 -04:00
add yml file to publish (DAGMC+libmesh) image
This commit is contained in:
parent
38a030d87a
commit
f0cd6fb38c
4 changed files with 79 additions and 3 deletions
36
.github/workflows/dockerhub-publish-dagmc-libmesh.yml
vendored
Normal file
36
.github/workflows/dockerhub-publish-dagmc-libmesh.yml
vendored
Normal file
|
|
@ -0,0 +1,36 @@
|
|||
name: dockerhub-publish-latest-dagmc-libmesh
|
||||
|
||||
on:
|
||||
push:
|
||||
branches: master
|
||||
|
||||
jobs:
|
||||
main:
|
||||
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: Login to DockerHub
|
||||
uses: docker/login-action@v1
|
||||
with:
|
||||
username: ${{ secrets.DOCKERHUB_USERNAME }}
|
||||
password: ${{ secrets.DOCKERHUB_TOKEN }}
|
||||
-
|
||||
name: Build and push
|
||||
id: docker_build
|
||||
uses: docker/build-push-action@v2
|
||||
with:
|
||||
push: true
|
||||
tags: openmc/openmc:latest-libmesh
|
||||
build-args: |
|
||||
build_dagmc=on
|
||||
build_libmesh=on
|
||||
compile_cores=2
|
||||
-
|
||||
name: Image digest
|
||||
run: echo ${{ steps.docker_build.outputs.digest }}
|
||||
37
.github/workflows/dockerhub-publish-develop-dagmc-libmesh.yml
vendored
Normal file
37
.github/workflows/dockerhub-publish-develop-dagmc-libmesh.yml
vendored
Normal file
|
|
@ -0,0 +1,37 @@
|
|||
name: dockerhub-publish-develop-dagmc-libmesh
|
||||
|
||||
on:
|
||||
push:
|
||||
branches: develop
|
||||
|
||||
jobs:
|
||||
main:
|
||||
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: Login to DockerHub
|
||||
uses: docker/login-action@v1
|
||||
with:
|
||||
username: ${{ secrets.DOCKERHUB_USERNAME }}
|
||||
password: ${{ secrets.DOCKERHUB_TOKEN }}
|
||||
-
|
||||
name: Build and push
|
||||
id: docker_build
|
||||
uses: docker/build-push-action@v2
|
||||
with:
|
||||
push: true
|
||||
tags: openmc/openmc:develop-dagmc
|
||||
build-args: |
|
||||
build_dagmc=on
|
||||
build_libmesh=on
|
||||
compile_cores=2
|
||||
openmc_branch=develop
|
||||
-
|
||||
name: Image digest
|
||||
run: echo ${{ steps.docker_build.outputs.digest }}
|
||||
|
|
@ -7,9 +7,12 @@
|
|||
# To build with OpenMC and DAGMC enabled
|
||||
# docker build -t openmc_dagmc --build-arg build_dagmc=on --build-arg compile_cores=4 .
|
||||
|
||||
# To build with OpenMC and Libmesh support
|
||||
# To build with OpenMC and Libmesh enabled
|
||||
# docker build -t openmc_libmesh --build-arg build_libmesh=on --build-arg compile_cores=4 .
|
||||
|
||||
# To build with both DAGMC and Libmesh enabled
|
||||
# docker build -t openmc_dagmc_libmesh --build-arg build_dagmc=on --build-arg build_libmesh=on --build-arg compile_cores=4 .
|
||||
|
||||
# sudo docker run image_name:tag_name or ID with no tag sudo docker run ID number
|
||||
|
||||
FROM ubuntu:latest
|
||||
|
|
@ -19,7 +22,7 @@ ARG build_dagmc=off
|
|||
ARG build_libmesh=off
|
||||
|
||||
# By default one core is used to compile
|
||||
ARG compile_cores=4
|
||||
ARG compile_cores=1
|
||||
|
||||
# Set default value of HOME to /root
|
||||
ENV HOME /root
|
||||
|
|
|
|||
2
vendor/fmt
vendored
2
vendor/fmt
vendored
|
|
@ -1 +1 @@
|
|||
Subproject commit d141cdbeb0fb422a3fb7173b285fd38e0d1772dc
|
||||
Subproject commit 65ac626c5856f5aad1f1542e79407a6714357043
|
||||
Loading…
Add table
Add a link
Reference in a new issue