-
Notifications
You must be signed in to change notification settings - Fork 212
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Merge pull request #4495 from ESMCI/update-docker
- Adds lapack and blas packages - Adds separate workflow for containers - Changes publishing to ghcr.io from hub.docker Test suite: Test baseline: Test namelist changes: Test status: [bit for bit, roundoff, climate changing] Fixes [CIME Github issue #] User interface changes?: Update gh-pages html (Y/N)?:
- Loading branch information
Showing
5 changed files
with
85 additions
and
64 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,58 @@ | ||
name: container build/publish | ||
|
||
on: | ||
push: | ||
branches: | ||
- master | ||
paths: | ||
- 'docker/**' | ||
|
||
pull_request: | ||
branches: | ||
- master | ||
paths: | ||
- 'docker/**' | ||
|
||
concurrency: | ||
group: ${{ github.ref }} | ||
cancel-in-progress: true | ||
|
||
jobs: | ||
# Only build container if there has been a change. | ||
build-containers: | ||
runs-on: ubuntu-latest | ||
permissions: | ||
contents: read | ||
packages: write | ||
steps: | ||
- name: Checkout code | ||
uses: actions/checkout@v3 | ||
- name: Set up QEMU | ||
uses: docker/setup-qemu-action@v2 | ||
- name: Set up Docker Buildx | ||
uses: docker/setup-buildx-action@v2 | ||
- name: Login to DockerHub | ||
uses: docker/login-action@v2 | ||
with: | ||
registry: ghcr.io | ||
username: ${{ github.actor }} | ||
password: ${{ secrets.GITHUB_TOKEN }} | ||
- name: Docker meta | ||
id: meta | ||
uses: docker/metadata-action@v4 | ||
with: | ||
images: ghcr.io/ESMCI/cime | ||
flavor: | | ||
latest=auto | ||
tags: | | ||
type=sha | ||
- name: Build and push | ||
uses: docker/build-push-action@v3 | ||
with: | ||
target: base | ||
context: docker/ | ||
push: ${{ github.event == 'push' }} | ||
tags: ${{ steps.meta.outputs.tags }} | ||
labels: ${{ steps.meta.outputs.labels }} | ||
cache-from: type=gha | ||
cache-to: type=gha,mode=max |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,11 +1,8 @@ | ||
string(APPEND CXXFLAGS " -std=c++14") | ||
string(APPEND CXX_LIBS " -lstdc++") | ||
string(APPEND SLIBS " -L/opt/conda/lib -lnetcdf -lnetcdff") | ||
string(APPEND FFLAGS " -I/opt/conda/include") | ||
string(APPEND SLIBS " -L/opt/conda/lib") | ||
set(MPI_PATH "/opt/conda") | ||
set(NETCDF_C_PATH "/opt/conda") | ||
set(NETCDF_FORTRAN_PATH "/opt/conda") | ||
set(PNETCDF_PATH "/opt/conda") | ||
if (CMAKE_Fortran_COMPILER_VERSION VERSION_GREATER_EQUAL 10) | ||
string(APPEND FFLAGS " -fallow-argument-mismatch -fallow-invalid-boz ") | ||
endif() |