diff --git a/.github/workflows/ctsm-build.yml b/.github/workflows/ctsm-build.yml index 6b3fd48..b7ca49f 100644 --- a/.github/workflows/ctsm-build.yml +++ b/.github/workflows/ctsm-build.yml @@ -13,7 +13,7 @@ on: branches: [main] paths: - '.github/workflows/ctsm-build.yml' - + - 'unit-testing/Dockerfile' jobs: build-and-push: runs-on: ubuntu-latest diff --git a/unit-testing/Dockerfile b/unit-testing/Dockerfile index 39b057f..ae08d7f 100644 --- a/unit-testing/Dockerfile +++ b/unit-testing/Dockerfile @@ -10,6 +10,12 @@ ENV BRANCH_URL="" # Install dependencies not associated with the spack environment RUN apt-get update && apt-get install -y wget git python3 +# Install Miniconda +RUN wget https://repo.anaconda.com/miniconda/Miniconda3-latest-Linux-x86_64.sh -O /tmp/miniconda.sh && \ + bash /tmp/miniconda.sh -b -p /opt/miniconda && \ + rm /tmp/miniconda.sh && \ + ln -s /opt/miniconda/bin/conda /usr/local/bin/conda + # Clone CTSM and checkout the specified version with git-fleximod RUN git clone https://github.com/ESCOMP/CTSM.git && \ cd CTSM && \