|
12 | 12 | BUILDKIT_PROGRESS: plain |
13 | 13 | CONAN_VERSION: 2.17.0 |
14 | 14 | NONROOT_USER: ci |
| 15 | + FALLBACK_GCC: 12 |
| 16 | + FALLBACK_CLANG: 16 |
15 | 17 |
|
16 | 18 | jobs: |
17 | 19 | # Build the Docker image for Debian using different versions of GCC and Clang. |
@@ -77,32 +79,33 @@ jobs: |
77 | 79 | id: meta |
78 | 80 | uses: docker/metadata-action@v5 |
79 | 81 | with: |
80 | | - images: ${{ env.CONTAINER_IMAGE }} |
81 | | - tags: | |
82 | | - type=raw,value=${{ matrix.os.compiler_name }}-${{ matrix.os.compiler_version }} |
83 | | - type=sha,prefix=${{ matrix.os.compiler_name }}-${{ matrix.os.compiler_version }}-sha- |
84 | | - labels: | |
85 | | - org.opencontainers.image.authors=For inquiries, please use https://github.com/XRPLF/ci/issues |
86 | | - org.opencontainers.image.documentation=https://github.com/XRPLF/ci |
87 | | - org.opencontainers.image.vendor=XRPLF |
88 | | - org.opencontainers.image.title=${{ env.CONTAINER_REPOSITORY }} |
| 82 | + images: ${{ env.CONTAINER_IMAGE }} |
| 83 | + tags: | |
| 84 | + type=raw,value=${{ matrix.os.compiler_name }}-${{ matrix.os.compiler_version }} |
| 85 | + type=sha,prefix=${{ matrix.os.compiler_name }}-${{ matrix.os.compiler_version }}-sha- |
| 86 | + labels: | |
| 87 | + org.opencontainers.image.authors=For inquiries, please use https://github.com/XRPLF/ci/issues |
| 88 | + org.opencontainers.image.documentation=https://github.com/XRPLF/ci |
| 89 | + org.opencontainers.image.vendor=XRPLF |
| 90 | + org.opencontainers.image.title=${{ env.CONTAINER_REPOSITORY }} |
89 | 91 | - name: Build and push the Docker image |
90 | 92 | uses: docker/build-push-action@v6 |
91 | 93 | with: |
92 | 94 | build-args: | |
93 | 95 | BUILDKIT_DOCKERFILE_CHECK=skip=InvalidDefaultArgInFrom |
94 | 96 | BUILDKIT_INLINE_CACHE=1 |
95 | | - CLANG_VERSION=${{ matrix.os.compiler_name == 'clang' && matrix.os.compiler_version || '' }} |
| 97 | + CLANG_VERSION=${{ matrix.os.compiler_name == 'clang' && matrix.os.compiler_version || env.FALLBACK_CLANG }} |
| 98 | + GCC_VERSION=${{ matrix.os.compiler_name == 'gcc' && matrix.os.compiler_version || env.FALLBACK_GCC }} |
96 | 99 | CONAN_VERSION=${{ env.CONAN_VERSION }} |
97 | | - DEBIAN_VERSION=${{ matrix.os.release }} |
98 | | - GCC_VERSION=${{ matrix.os.compiler_name == 'gcc' && matrix.os.compiler_version || '' }} |
99 | 100 | GITHUB_REPO=${{ github.repository }} |
100 | 101 | NONROOT_USER=${{ env.NONROOT_USER }} |
| 102 | + DEBIAN_VERSION=${{ matrix.os.release }} |
101 | 103 | context: docker/debian |
102 | 104 | outputs: type=image,name=${{ env.CONTAINER_IMAGE }},push-by-digest=true,name-canonical=true,push=true |
103 | 105 | platforms: ${{ matrix.architecture.platform }} |
104 | 106 | provenance: mode=max |
105 | 107 | push: true |
106 | 108 | sbom: true |
| 109 | + tags: ${{ steps.meta.outputs.tags }} |
107 | 110 | labels: ${{ steps.meta.outputs.labels }} |
108 | 111 | target: ${{ matrix.os.compiler_name }} |
0 commit comments