From b9affa34efc3a1afe69bb6d8a9fe6902a4d5c57d Mon Sep 17 00:00:00 2001 From: Niklas van Schrick Date: Thu, 29 Jan 2026 20:56:03 +0100 Subject: [PATCH 1/2] Add opencontainers image labels to application images --- support/helpers.sh | 14 ++++++++++++++ 1 file changed, 14 insertions(+) diff --git a/support/helpers.sh b/support/helpers.sh index f2abd87..6b2f867 100644 --- a/support/helpers.sh +++ b/support/helpers.sh @@ -36,6 +36,13 @@ function build_image() { container/$image/renderDockerfile fi + build_args+=" --label org.opencontainers.image.source=https://github.com/code0-tech/reticulum" + build_args+=" --label org.opencontainers.image.version=$reticulum_tag" + + if [ -e "versions/$image" ]; then + build_args+=" --label org.opencontainers.image.revision=$(cat versions/$image)" + fi + docker buildx build \ -t "ghcr.io/code0-tech/reticulum/ci-builds/$image$reticulum_push_tag" \ -f "container/$image/Dockerfile" \ @@ -49,6 +56,13 @@ function create_manifest() { reticulum_tag=$2 args=(-t "ghcr.io/code0-tech/reticulum/ci-builds/$image:$reticulum_tag") + args+=(--annotation "index:org.opencontainers.image.source=https://github.com/code0-tech/reticulum") + args+=(--annotation "index:org.opencontainers.image.version=$reticulum_tag") + + if [ -e "versions/$image" ]; then + args+=(--annotation "index:org.opencontainers.image.revision=$(cat versions/$image)") + fi + for manifest in manifest-*.json; do args+=("$(jq -r '."image.name"' $manifest)@$(jq -r '."containerimage.digest"' $manifest)") done From 7788149e2e664462a08a037db2169217d245b255 Mon Sep 17 00:00:00 2001 From: Niklas van Schrick Date: Thu, 29 Jan 2026 20:56:19 +0100 Subject: [PATCH 2/2] Add workflow to mirror repository to GitLab --- .github/workflows/mirror.yml | 19 +++++++++++++++++++ 1 file changed, 19 insertions(+) create mode 100644 .github/workflows/mirror.yml diff --git a/.github/workflows/mirror.yml b/.github/workflows/mirror.yml new file mode 100644 index 0000000..07783f0 --- /dev/null +++ b/.github/workflows/mirror.yml @@ -0,0 +1,19 @@ +name: Mirror to GitLab + +on: + push: + branches: + - main + +jobs: + mirror: + runs-on: ubuntu-latest + steps: + - run: git clone https://github.com/${{ github.repository }} . + - run: git remote add gitlab https://gitlab.com/code0-tech/development/reticulum.git + - run: >- + git + -c credential.helper='!f() { sleep 1; echo "username=${{ secrets.GL_API_USER }}"; echo "password=${{ secrets.GL_API_TOKEN }}"; }; f' + push + -o ci.skip + gitlab HEAD:main