Skip to content

Commit

Permalink
correct naming
Browse files Browse the repository at this point in the history
  • Loading branch information
jandrej committed Nov 21, 2023
1 parent 5d7dd72 commit 5a6d8a7
Show file tree
Hide file tree
Showing 2 changed files with 14 additions and 8 deletions.
16 changes: 11 additions & 5 deletions .github/workflows/build-and-push-images.yml
Original file line number Diff line number Diff line change
Expand Up @@ -9,7 +9,7 @@ on:
env:
REGISTRY: ghcr.io
# github.repository as <account>/<repo>
IMAGE_NAME_BASE: ${{ github.repository }}
IMAGE_NAME_PREFIX: ${{ github.repository }}

jobs:

Expand All @@ -30,13 +30,19 @@ jobs:
password: ${{ secrets.GITHUB_TOKEN }}

- name: build base image
run: docker-compose build base ${{ env.REGISTRY }}/${{ env.IMAGE_NAME_BASE }}/base:latest .
run: docker-compose build base

- name: tag base image
run: docker tag mfem-base ${{ env.REGISTRY }}/${{ env.IMAGE_NAME_PREFIX }}/base:latest

- name: push base image
run: docker push ${{ env.REGISTRY }}/${{ env.IMAGE_NAME_BASE }}/base:latest
run: docker push ${{ env.REGISTRY }}/${{ env.IMAGE_NAME_PREFIX }}/base:latest

- name: build cpu image
run: docker-compose build cpu ${{ env.REGISTRY }}/${{ env.IMAGE_NAME_BASE }}/cpu:latest .
run: docker-compose build cpu ${{ env.REGISTRY }}/${{ env.IMAGE_NAME_PREFIX }}/cpu:latest .

- name: tag cpu image
run: docker tag mfem-cpu ${{ env.REGISTRY }}/${{ env.IMAGE_NAME_PREFIX }}/cpu:latest

- name: push cpu image
run: docker push ${{ env.REGISTRY }}/${{ env.IMAGE_NAME_BASE }}/cpu:latest
run: docker push ${{ env.REGISTRY }}/${{ env.IMAGE_NAME_PREFIX }}/cpu:latest
6 changes: 3 additions & 3 deletions docker-compose.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -6,15 +6,15 @@ services:
context: base
args:
num_jobs: 2
image: mfem/containers/base
image: mfem-base

cpu:
build:
context: cpu
args:
num_jobs: 2
hypre_version: 2.27.0
image: mfem/containers/cpu
image: mfem-cpu

cuda:
build:
Expand All @@ -23,4 +23,4 @@ services:
num_jobs: 2
cuda_arch_sm: 70
hypre_version: 2.27.0
image: mfem/containers/cuda
image: mfem-cuda

0 comments on commit 5a6d8a7

Please sign in to comment.