From 8b4faf1d1b003235aa3d0871f394d5ae3f42141c Mon Sep 17 00:00:00 2001 From: Mason Date: Wed, 21 Oct 2026 10:45:45 +0800 Subject: [PATCH] ci: add GitLab CI pipeline for build and secret detection --- .gitlab-ci.yml | 20 ++++++++++++++++++++ 1 file changed, 20 insertions(+) create mode 100644 .gitlab-ci.yml diff --git a/.gitlab-ci.yml b/.gitlab-ci.yml new file mode 100644 index 0000000..5e149e4 --- /dev/null +++ b/.gitlab-ci.yml @@ -0,0 +1,20 @@ +stages: + - build + - test + +include: + # Scan for leaked secrets on MRs and the default branch (GitLab Secret Detection template). + - component: git-devops.opencsg.com/gitlab/ci-components/secret-detection@v1.4.13 + + # Build multi-platform images with Docker buildx and push to registry.opencsg.com. + - component: git-devops.opencsg.com/gitlab/ci-components/build@v1.4.13 + inputs: + environment: prod + edition: all + tags: ["docker"] + images: + - "registry.opencsg.com/opencsghq/label-studio:${CI_COMMIT_TAG}-llm-back" + - "docker.io/opencsghq/label-studio:${CI_COMMIT_TAG}-llm-back" + platforms: "linux/amd64,linux/arm64" + proxy: http://172.21.1.212:7897 + no_proxy: "localhost,127.0.0.1,docker,${CI_REGISTRY},${CI_SERVER_HOST},registry.opencsg.com"