You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
name: Check that clm6* compset aliases return CLM6* longnames
2
+
# Only check files in our repo that AREN'T in submodules
3
+
# Use a Python command to check each file because xmllint isn't available on GH runners
4
+
5
+
on:
6
+
push:
7
+
# Run when a change to these files is pushed to any branch. Without the "branches:" line, for some reason this will be run whenever a tag is pushed, even if the listed files aren't changed.
8
+
branches: ['*']
9
+
paths:
10
+
- '.github/workflows/check-clm6-aliases.sh'
11
+
- 'cime/**'
12
+
- 'cime_config/config_compsets.xml'
13
+
14
+
pull_request:
15
+
# Run on pull requests that change the listed files
# Uses the `docker/login-action` action to log in to the Container registry using the account and password that will publish the packages. Once published, the packages are scoped to the account defined here.
48
48
- name: Log in to the Container registry
@@ -61,6 +61,7 @@ jobs:
61
61
# This step uses the `docker/build-push-action` action to build the image, based on the ctsm-docs `Dockerfile`.
62
62
# It uses the `context` parameter to define the build's context as the set of files located in the specified path. For more information, see [Usage](https://github.com/docker/build-push-action#usage) in the README of the `docker/build-push-action` repository.
63
63
# It uses the `tags` and `labels` parameters to tag and label the image with the output from the "meta" step.
64
+
# Note that we should avoid relying on the "latest" tag for anything, but it's good practice to have one.
64
65
# v6.15.0
65
66
- name: Push Docker image
66
67
id: push
@@ -70,12 +71,14 @@ jobs:
70
71
platforms: linux/amd64,linux/arm64
71
72
push: true
72
73
load: false
73
-
tags: ${{ env.IMAGE_TAG }}
74
+
tags: |
75
+
${{ env.REGISTRY }}/${{ env.IMAGE_NAME }}:latest
76
+
${{ env.VERSION_TAG }}
74
77
labels: ""
75
78
76
79
# This step generates an artifact attestation for the image, which is an unforgeable statement about where and how it was built. It increases supply chain security for people who consume the image. For more information, see [Using artifact attestations to establish provenance for builds](/actions/security-guides/using-artifact-attestations-to-establish-provenance-for-builds).
# Modified from https://docs.github.com/en/packages/managing-github-packages-using-github-actions-workflows/publishing-and-installing-a-package-with-github-actions#publishing-a-package-using-an-action (last accessed 2025-05-09)
2
-
name: Test building ctsm-docs Docker image and using it to build the docs
2
+
name: Build and test ctsm-docs container
3
3
4
-
# Configures this workflow to run every time a change in the Docker container setup is pushed to the master branch
4
+
# Configures this workflow to run every time a change in the Docker container setup is pushed or included in a PR
5
5
on:
6
6
push:
7
+
# Run when a change to these files is pushed to any branch. Without the "branches:" line, for some reason this will be run whenever a tag is pushed, even if the listed files aren't changed.
# Defines two custom environment variables for the workflow. These are used for the Container registry domain, and a name for the Docker image that this workflow builds.
16
+
# Defines custom environment variables for the workflow.
17
17
env:
18
18
REGISTRY: ghcr.io
19
-
IMAGE_NAME: ${{ github.repository }}/ctsm-docs
19
+
IMAGE_BASENAME: ctsm-docs
20
+
REPO: ${{ github.repository }}
20
21
21
22
# There is a single job in this workflow. It's configured to run on the latest available version of Ubuntu.
22
23
jobs:
@@ -25,19 +26,23 @@ jobs:
25
26
# Variables that might be needed by the calling workflow
# Ensure that the repository part of IMAGE_NAME is lowercase. This is needed because Docker requires image names to be entirely lowercase. Note that the *image name* part, set as IMAGE_BASENAME in the env block above, is *not* converted. This will cause the check-version job to fail if the IMAGE_BASENAME contains capitals. We don't want to silently fix that here; rather, we require the user to specify a lowercase IMAGE_BASENAME.
# Uses the `docker/login-action` action to log in to the Container registry using the account and password that will publish the packages. Once published, the packages are scoped to the account defined here.
# This step uses the `docker/build-push-action` action to build the image, based on the ctsm-docs `Dockerfile`.
58
63
# It uses the `context` parameter to define the build's context as the set of files located in the specified path. For more information, see [Usage](https://github.com/docker/build-push-action#usage) in the README of the `docker/build-push-action` repository.
@@ -68,16 +73,25 @@ jobs:
68
73
tags: ${{ steps.meta.outputs.tags }}
69
74
labels: ${{ steps.meta.outputs.labels }}
70
75
71
-
#Try building our docs using the new container
72
-
- name: Checkout doc-builder external
76
+
#Check out all submodules because we might :literalinclude: something from one
0 commit comments