Skip to content

Commit 38f57ad

Browse files
committed
Add docker build
1 parent 55907cc commit 38f57ad

5 files changed

Lines changed: 44 additions & 27 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: 41 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1,7 +1,48 @@
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.10.0
27+
stage: test
28+
parallel:
29+
matrix:
30+
- C0_ACTION: !reference [.node-actions]
31+
script:
32+
- cd actions/$C0_ACTION
33+
- npm ci
34+
- npm run typecheck
35+
36+
build-docker:
37+
extends:
38+
- .dind
39+
image: docker:29.4.1
40+
stage: build
41+
parallel:
42+
matrix:
43+
- C0_ACTION: !reference [.node-actions]
44+
script:
45+
- cd actions/$C0_ACTION
46+
- echo $C0_GH_TOKEN | docker login -u $ --password-stdin ghcr.io
47+
- docker build -t ghcr.io/code0-tech/centaurus/ci-builds/$C0_ACTION:0.0.0-experimental-$CI_PIPELINE_ID-$CI_COMMIT_SHA .
48+
- 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.10.0

actions/gls-action/Dockerfile

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,4 @@
1-
FROM node:24-alpine
1+
FROM node:24.10.0-alpine
22

33
WORKDIR /app
44

0 commit comments

Comments
 (0)