@@ -25,25 +25,25 @@ jobs:
2525 - platform : linux/arm64
2626 runner : ubuntu-24.04-arm
2727 os :
28- - distro : jammy
28+ - release : jammy
2929 compiler_name : gcc
3030 compiler_version : 12
31- - distro : noble
31+ - release : noble
3232 compiler_name : gcc
3333 compiler_version : 13
34- - distro : noble
34+ - release : noble
3535 compiler_name : gcc
3636 compiler_version : 14
37- - distro : noble
37+ - release : noble
3838 compiler_name : clang
3939 compiler_version : 16
40- - distro : noble
40+ - release : noble
4141 compiler_name : clang
4242 compiler_version : 17
43- - distro : noble
43+ - release : noble
4444 compiler_name : clang
4545 compiler_version : 18
46- - distro : noble
46+ - release : noble
4747 compiler_name : clang
4848 compiler_version : 19
4949 runs-on : ${{ matrix.architecture.runner }}
@@ -65,10 +65,25 @@ jobs:
6565 - name : Determine the Docker image name.
6666 run : |
6767 # Convert the repository name to lowercase as the organization name is
68- # uppercase, which is not permitted by the Docker registry.
68+ # uppercase, which is not permitted by the Docker registry. It's 2025 and GitHub
69+ # still does not provide convenient action expression syntax for lowercase.
6970 GITHUB_REPO=${{ github.repository }}
70- CONTAINER_REPOSITORY=${GITHUB_REPO@L}
71- echo "CONTAINER_IMAGE=${CONTAINER_REGISTRY}/${CONTAINER_REPOSITORY}/ubuntu-${{ matrix.os.distro }}:${{ matrix.os.compiler_name }}${{ matrix.os.compiler_version }}" >> $GITHUB_ENV
71+ CONTAINER_REPO=${GITHUB_REPO@L}
72+ echo "CONTAINER_REPOSITORY=${CONTAINER_REPO}/ubuntu-${{ matrix.os.release }}" >> $GITHUB_ENV
73+ echo "CONTAINER_IMAGE=${CONTAINER_REGISTRY}/${CONTAINER_REPO}/ubuntu-${{ matrix.os.release }}:" >> $GITHUB_ENV
74+ - name : Prepare container metadata
75+ id : meta
76+ uses : docker/metadata-action@v5
77+ with :
78+ images : ${{ env.CONTAINER_IMAGE }}
79+ tags : |
80+ type=raw,value=${{ matrix.os.compiler_name }}-${{ matrix.os.compiler_version }}
81+ type=sha,prefix=${{ matrix.os.compiler_name }}-${{ matrix.os.compiler_version }}-sha-
82+ labels : |
83+ org.opencontainers.image.authors=For inquiries, please use https://github.com/XRPLF/ci/issues
84+ org.opencontainers.image.documentation=https://github.com/XRPLF/ci
85+ org.opencontainers.image.vendor=XRPLF
86+ org.opencontainers.image.title=${{ env.CONTAINER_REPOSITORY }}
7287 - name : Build and push the Docker image
7388 uses : docker/build-push-action@v6
7489 with :
@@ -80,12 +95,12 @@ jobs:
8095 GCC_VERSION=${{ matrix.os.compiler_name == 'gcc' && matrix.os.compiler_version || '' }}
8196 GITHUB_REPO=${{ github.repository }}
8297 NONROOT_USER=${{ env.NONROOT_USER }}
83- UBUNTU_VERSION=${{ matrix.os.distro }}
98+ UBUNTU_VERSION=${{ matrix.os.release }}
8499 context : docker/ubuntu
85100 outputs : type=image,name=${{ env.CONTAINER_IMAGE }},push-by-digest=true,name-canonical=true,push=true
86101 platforms : ${{ matrix.architecture.platform }}
87102 provenance : mode=max
88103 push : true
89104 sbom : true
90- tags : ${{ env.CONTAINER_IMAGE }}
105+ labels : ${{ steps.meta.outputs.labels }}
91106 target : ${{ matrix.os.compiler_name }}
0 commit comments