Skip to content

Commit 0249ef7

Browse files
authored
Add labels and libfn.org/ci (#136)
1 parent 4cddb15 commit 0249ef7

File tree

7 files changed

+31
-10
lines changed

7 files changed

+31
-10
lines changed

.github/actions/build-ci-image/action.yml

Lines changed: 7 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -29,7 +29,7 @@ inputs:
2929
default: null
3030
required: true
3131
type: string
32-
digest_suffix:
32+
title:
3333
default: null
3434
required: true
3535
type: string
@@ -49,6 +49,11 @@ runs:
4949
with:
5050
images: ${{ inputs.image }}
5151
tags: ${{ inputs.tags }}
52+
labels: |
53+
org.opencontainers.image.authors=For inquiries, please use https://github.com/libfn/functional/issues
54+
org.opencontainers.image.documentation=https://libfn.org/ci/
55+
org.opencontainers.image.vendor=libfn.org
56+
org.opencontainers.image.title=libfn/ci/${{ inputs.title }}
5257
5358
- name: Set up QEMU
5459
uses: docker/setup-qemu-action@v3
@@ -85,7 +90,7 @@ runs:
8590
- name: Upload digest
8691
uses: actions/upload-artifact@v4
8792
with:
88-
name: digests-${{ inputs.digest_suffix }}-${{ env.PLATFORM_PAIR }}
93+
name: digests-${{ inputs.title }}-${{ env.PLATFORM_PAIR }}
8994
path: /tmp/digests/*
9095
if-no-files-found: error
9196
retention-days: 1

.github/actions/merge-ci-images/action.yml

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -18,7 +18,7 @@ inputs:
1818
default: null
1919
required: true
2020
type: string
21-
digest_suffix:
21+
title:
2222
default: null
2323
required: true
2424
type: string
@@ -30,7 +30,7 @@ runs:
3030
uses: actions/download-artifact@v4
3131
with:
3232
path: /tmp/digests
33-
pattern: digests-${{ inputs.digest_suffix }}-*
33+
pattern: digests-${{ inputs.title }}-*
3434
merge-multiple: true
3535

3636
- name: Set up Docker Buildx

.github/workflows/ci-build.yml

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -58,7 +58,7 @@ jobs:
5858
GCC_RELEASE=${{ env.RELEASE }}
5959
CLANG_RELEASE=${{ env.RELEASE }}
6060
context: "ci/build/${{ env.COMPILER }}"
61-
digest_suffix: "build-${{ env.COMPILER}}-${{ env.RELEASE }}"
61+
title: "build-${{ env.COMPILER}}-${{ env.RELEASE }}"
6262

6363
merge:
6464
runs-on: ubuntu-latest
@@ -91,4 +91,4 @@ jobs:
9191
type=sha,prefix=${{ env.RELEASE }}-sha-
9292
username: ${{ secrets.DOCKERHUB_USERNAME }}
9393
password: ${{ secrets.DOCKERHUB_TOKEN }}
94-
digest_suffix: "build-${{ env.COMPILER}}-${{ env.RELEASE }}"
94+
title: "build-${{ env.COMPILER}}-${{ env.RELEASE }}"

.github/workflows/ci-docs.yml

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -45,7 +45,7 @@ jobs:
4545
username: ${{ secrets.DOCKERHUB_USERNAME }}
4646
password: ${{ secrets.DOCKERHUB_TOKEN }}
4747
context: "ci/docs"
48-
digest_suffix: "docs"
48+
title: "docs"
4949

5050
merge:
5151
runs-on: ubuntu-latest
@@ -66,4 +66,4 @@ jobs:
6666
type=sha
6767
username: ${{ secrets.DOCKERHUB_USERNAME }}
6868
password: ${{ secrets.DOCKERHUB_TOKEN }}
69-
digest_suffix: "docs"
69+
title: "docs"

.github/workflows/ci-pre-commit.yml

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -45,7 +45,7 @@ jobs:
4545
username: ${{ secrets.DOCKERHUB_USERNAME }}
4646
password: ${{ secrets.DOCKERHUB_TOKEN }}
4747
context: "ci/pre-commit"
48-
digest_suffix: "pre-commit"
48+
title: "pre-commit"
4949

5050
merge:
5151
runs-on: ubuntu-latest
@@ -66,4 +66,4 @@ jobs:
6666
type=sha
6767
username: ${{ secrets.DOCKERHUB_USERNAME }}
6868
password: ${{ secrets.DOCKERHUB_TOKEN }}
69-
digest_suffix: "pre-commit"
69+
title: "pre-commit"

docs/ci/index.md

Lines changed: 14 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,14 @@
1+
---
2+
title: CI
3+
---
4+
5+
##### Images
6+
7+
Images for continuous integration are defined in:
8+
9+
* `ci/build/gcc` - [GCC compiler](https://gcc.gnu.org/) for `build` and `coverage` workflows
10+
* `ci/build/clang` - [Clang compiler](https://clang.llvm.org/) for `build` workflow
11+
* `ci/pre-commit` - [pre-commit](https://pre-commit.com/) for `pre-commit` workflow
12+
* `ci/docs` - [Znai](https://testingisdocumenting.org/znai/) for `docs` workflow
13+
14+
Images are refreshed at least once a month by `ci-...` workflows

docs/toc

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -28,3 +28,5 @@ pack
2828
index
2929
sum
3030
index
31+
ci
32+
index

0 commit comments

Comments
 (0)