From 8f7ef12da3a593ba68b2525c207587892cd8afc8 Mon Sep 17 00:00:00 2001 From: Gregory Lemieux Date: Fri, 20 Jun 2025 11:47:07 -0700 Subject: [PATCH] migrate lowercase fix to cime build as well and update --- .github/workflows/cime-build.yml | 7 ++++++- unit-testing/Dockerfile | 2 +- 2 files changed, 7 insertions(+), 2 deletions(-) diff --git a/.github/workflows/cime-build.yml b/.github/workflows/cime-build.yml index 043f5ca..e3d36a4 100644 --- a/.github/workflows/cime-build.yml +++ b/.github/workflows/cime-build.yml @@ -31,12 +31,17 @@ jobs: uses: docker/setup-buildx-action@v3 with: buildkitd-flags: --debug + + - name: Lowercase the github.repository name + # This step addresses https://github.com/orgs/community/discussions/25768 + run: | + echo "REPO_NAME=`echo ${{ github.repository }} | tr '[:upper:]' '[:lower:]'`" >> $GITHUB_ENV - name: Build and push image uses: docker/build-push-action@v6 with: context: ./unit-testing/ push: true - tags: ghcr.io/${{ github.repository }}/unit-testing:latest + tags: ghcr.io/${{ env.REPO_NAME}}/unit-testing:latest cache-from: type=gha cache-to: type=gha,mode=max diff --git a/unit-testing/Dockerfile b/unit-testing/Dockerfile index 0eb4224..ab7af74 100644 --- a/unit-testing/Dockerfile +++ b/unit-testing/Dockerfile @@ -1,4 +1,4 @@ -FROM ghcr.io/glemieux/containers/spack-env:latest +FROM ghcr.io/ngeet/containers/spack-env:latest ARG CIME_VERSION=cime6.1.102 ARG CCS_CONFIG_VERSION=ccs_config_cesm1.0.46