Skip to content

Commit 79c3d7c

Browse files
committed
Add docker build
1 parent 60f9c22 commit 79c3d7c

4 files changed

Lines changed: 44 additions & 26 deletions

File tree

.github/workflows/ci.yml

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -26,6 +26,7 @@ jobs:
2626
OVERRIDE_GITHUB_REF_NAME: ${{ github.event_name == 'push' && github.ref_name || github.event.pull_request.head.ref }}
2727
env:
2828
GLPA_C0_GH_REF: ${{ github.ref }}
29+
GLPA_C0_GH_TOKEN: ${{ secrets.GITHUB_TOKEN }}
2930

3031
- name: Find existing comment
3132
uses: peter-evans/find-comment@v4

.github/workflows/test.yml

Lines changed: 0 additions & 26 deletions
This file was deleted.

.gitlab-ci.yml

Lines changed: 42 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1,7 +1,49 @@
11
stages:
22
- test
3+
- build
34

45
include:
56
- project: code0-tech/development/telescopium
67
ref: build-branch
78
file: ci-template.gitlab-ci.yml
9+
10+
.dind:
11+
variables:
12+
DOCKER_MIRROR: https://mirror.gcr.io
13+
DOCKER_OPTIONS: "--registry-mirror ${DOCKER_MIRROR}"
14+
DOCKER_DRIVER: overlay2
15+
DOCKER_HOST: tcp://docker:2376
16+
DOCKER_TLS_CERTDIR: /certs
17+
services:
18+
- name: docker:29.4.1-dind
19+
alias: docker
20+
entrypoint: [ "sh", "-c", "dockerd-entrypoint.sh $DOCKER_OPTIONS" ]
21+
22+
.node-actions:
23+
- gls-action
24+
25+
test-node:
26+
image: node:24.13.1
27+
stage: test
28+
parallel:
29+
matrix:
30+
- C0_ACTION: !reference [.node-actions]
31+
script:
32+
- cd actions/$C0_ACTION
33+
- npm ci
34+
- test_exit_code=0; lint_exit_code=0
35+
- npm run test || test_exit_code=$?
36+
- npm run lint || lint_exit_code=$?
37+
- exit $(($test_exit_code + $lint_exit_code))
38+
39+
build-docker:
40+
image: docker:29.4.1
41+
stage: build
42+
parallel:
43+
matrix:
44+
- C0_ACTION: !reference [.node-actions]
45+
script:
46+
- cd actions/$C0_ACTION
47+
- echo $C0_GH_TOKEN | docker login -u $ --password-stdin ghcr.io
48+
- docker build -t ghcr.io/code0-tech/centaurus/ci-builds/$C0_ACTION:0.0.0-experimental-$CI_PIPELINE_ID-$CI_COMMIT_SHA
49+
- docker push ghcr.io/code0-tech/centaurus/ci-builds/$C0_ACTION:0.0.0-experimental-$CI_PIPELINE_ID-$CI_COMMIT_SHA

.tool-versions

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1 @@
1+
nodejs 24.13.1

0 commit comments

Comments
 (0)