mirror of
https://github.com/openmc-dev/openmc.git
synced 2026-07-27 21:55:41 -04:00
Merge pull request #1725 from Shimwell/adding_optional_dagmc_to_docker
Adding optional dagmc to docker
This commit is contained in:
commit
32918f042d
7 changed files with 234 additions and 6 deletions
35
.github/workflows/dockerhub-publish-dagmc.yml
vendored
Normal file
35
.github/workflows/dockerhub-publish-dagmc.yml
vendored
Normal file
|
|
@ -0,0 +1,35 @@
|
|||
name: dockerhub-publish-latest-dagmc
|
||||
|
||||
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-dagmc
|
||||
build-args: |
|
||||
include_dagmc=true
|
||||
compile_cores=2
|
||||
-
|
||||
name: Image digest
|
||||
run: echo ${{ steps.docker_build.outputs.digest }}
|
||||
2
.github/workflows/dockerhub-publish-dev.yml
vendored
2
.github/workflows/dockerhub-publish-dev.yml
vendored
|
|
@ -27,6 +27,8 @@ jobs:
|
|||
with:
|
||||
push: true
|
||||
tags: openmc/openmc:develop
|
||||
build-args: |
|
||||
compile_cores=2
|
||||
-
|
||||
name: Image digest
|
||||
run: echo ${{ steps.docker_build.outputs.digest }}
|
||||
|
|
|
|||
38
.github/workflows/dockerhub-publish-release-dagmc.yml
vendored
Normal file
38
.github/workflows/dockerhub-publish-release-dagmc.yml
vendored
Normal file
|
|
@ -0,0 +1,38 @@
|
|||
name: dockerhub-publish-release-dagmc
|
||||
|
||||
on:
|
||||
push:
|
||||
tags: 'v*.*.*'
|
||||
|
||||
jobs:
|
||||
main:
|
||||
runs-on: ubuntu-latest
|
||||
steps:
|
||||
- uses: actions/checkout@v2
|
||||
- name: Set env
|
||||
run: echo "RELEASE_VERSION=${GITHUB_REF#refs/*/}" >> $GITHUB_ENV
|
||||
-
|
||||
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:${{ env.RELEASE_VERSION }}-dagmc
|
||||
build-args: |
|
||||
include_dagmc=true
|
||||
compile_cores=2
|
||||
-
|
||||
name: Image digest
|
||||
run: echo ${{ steps.docker_build.outputs.digest }}
|
||||
|
|
@ -30,6 +30,8 @@ jobs:
|
|||
with:
|
||||
push: true
|
||||
tags: openmc/openmc:${{ env.RELEASE_VERSION }}
|
||||
build-args: |
|
||||
compile_cores=2
|
||||
-
|
||||
name: Image digest
|
||||
run: echo ${{ steps.docker_build.outputs.digest }}
|
||||
|
|
|
|||
2
.github/workflows/dockerhub-publish.yml
vendored
2
.github/workflows/dockerhub-publish.yml
vendored
|
|
@ -27,6 +27,8 @@ jobs:
|
|||
with:
|
||||
push: true
|
||||
tags: openmc/openmc:latest
|
||||
build-args: |
|
||||
compile_cores=2
|
||||
-
|
||||
name: Image digest
|
||||
run: echo ${{ steps.docker_build.outputs.digest }}
|
||||
|
|
|
|||
35
.github/workflows/name: dockerhub-publish-develop-dagmc.yml
vendored
Normal file
35
.github/workflows/name: dockerhub-publish-develop-dagmc.yml
vendored
Normal file
|
|
@ -0,0 +1,35 @@
|
|||
name: dockerhub-publish-develop-dagmc
|
||||
|
||||
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: |
|
||||
include_dagmc=true
|
||||
compile_cores=2
|
||||
-
|
||||
name: Image digest
|
||||
run: echo ${{ steps.docker_build.outputs.digest }}
|
||||
Loading…
Add table
Add a link
Reference in a new issue