diff --git a/.github/workflows/docker-image-build-publish.yml b/.github/workflows/docker-image-build-publish.yml index d22ab701e6..8dfd36caef 100644 --- a/.github/workflows/docker-image-build-publish.yml +++ b/.github/workflows/docker-image-build-publish.yml @@ -16,12 +16,14 @@ jobs: # This first job checks that the container can be built, and that we can use it to build the docs without error. build-image-and-test-docs: name: Build image and test docs + if: github.repository == 'ESCOMP/CTSM' uses: ./.github/workflows/docker-image-common.yml secrets: inherit # This second job actually builds and publishes the container. push-and-attest: name: Publish and attest + if: github.repository == 'ESCOMP/CTSM' runs-on: ubuntu-latest # Wait to run this job until after build-image-and-test-docs. If that job fails, something might be wrong with the container, so don't try this one. (It might also have failed because of something wrong with doc-builder or the documentation.) diff --git a/.github/workflows/docker-image-common.yml b/.github/workflows/docker-image-common.yml index 86de4fc2f2..e5bcd3a66f 100644 --- a/.github/workflows/docker-image-common.yml +++ b/.github/workflows/docker-image-common.yml @@ -17,7 +17,7 @@ on: env: REGISTRY: ghcr.io IMAGE_BASENAME: ctsm-docs - REPO: ${{ github.repository }} + REPO: ESCOMP/CTSM # There is a single job in this workflow. It's configured to run on the latest available version of Ubuntu. jobs: