Skip to content
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
1 change: 1 addition & 0 deletions .gitlab-ci.yml
Original file line number Diff line number Diff line change
@@ -1,4 +1,5 @@
stages:
- prepare
- container
- container:boot

Expand Down
5 changes: 5 additions & 0 deletions .gitlab/ci/container-boot.gitlab-ci.yml
Original file line number Diff line number Diff line change
Expand Up @@ -18,6 +18,7 @@
extends:
- .container:boot
needs:
- generate-environment
- manifest:sagittarius
parallel:
matrix:
Expand Down Expand Up @@ -57,6 +58,7 @@ container:boot:aquila:
extends:
- .container:boot
needs:
- generate-environment
- manifest:aquila
- manifest:sagittarius
variables:
Expand All @@ -80,6 +82,7 @@ container:boot:taurus:
extends:
- .container:boot
needs:
- generate-environment
- manifest:taurus
script:
- bundle install
Expand All @@ -93,6 +96,7 @@ container:boot:draco:
extends:
- .container:boot
needs:
- generate-environment
- manifest:draco
parallel:
matrix:
Expand All @@ -114,6 +118,7 @@ container:boot:sculptor:
extends:
- .container:boot
needs:
- generate-environment
- manifest:sculptor
parallel:
matrix:
Expand Down
27 changes: 24 additions & 3 deletions .gitlab/ci/container-build.gitlab-ci.yml
Original file line number Diff line number Diff line change
Expand Up @@ -33,7 +33,7 @@
- >
build_image
$image
$CI_PIPELINE_ID
$RETICULUM_CONTAINER_VERSION
"
--output type=registry,push-by-digest=true
--metadata-file manifest-${CI_JOB_ID}.json
Expand Down Expand Up @@ -62,7 +62,7 @@
- >
build_image
$image
$CI_PIPELINE_ID
$RETICULUM_CONTAINER_VERSION
"
--build-arg VARIANT=$VARIANT
--output type=registry,push-by-digest=true
Expand All @@ -86,34 +86,40 @@
variables:
PLATFORM: amd64
script:
- create_manifest $image $(get_image_tag $CI_PIPELINE_ID $VARIANT)
- create_manifest $image $(get_image_tag $RETICULUM_CONTAINER_VERSION $VARIANT)

container:mise:
extends:
- .single-image-build-base
needs:
- generate-environment

manifest:mise:
extends:
- .manifest-create-base
needs:
- generate-environment
- container:mise

container:rust:
extends:
- .single-image-build-base
needs:
- generate-environment
- manifest:mise

manifest:rust:
extends:
- .manifest-create-base
needs:
- generate-environment
- container:rust

container:aquila:
extends:
- .single-image-build-base
needs:
- generate-environment
- manifest:rust
variables:
NEED_PROJECT_DOWNLOAD: 'true'
Expand All @@ -122,12 +128,14 @@ manifest:aquila:
extends:
- .manifest-create-base
needs:
- generate-environment
- container:aquila

container:draco:
extends:
- .variant-image-build-base
needs:
- generate-environment
- manifest:rust
variables:
NEED_PROJECT_DOWNLOAD: 'true'
Expand All @@ -149,6 +157,7 @@ manifest:draco:
- rest
- cron
needs:
- generate-environment
- job: container:draco
parallel:
matrix:
Expand All @@ -161,6 +170,7 @@ container:taurus:
extends:
- .single-image-build-base
needs:
- generate-environment
- manifest:rust
variables:
NEED_PROJECT_DOWNLOAD: 'true'
Expand All @@ -169,36 +179,42 @@ manifest:taurus:
extends:
- .manifest-create-base
needs:
- generate-environment
- container:taurus

container:ruby:
extends:
- .single-image-build-base
needs:
- generate-environment
- manifest:mise

manifest:ruby:
extends:
- .manifest-create-base
needs:
- generate-environment
- container:ruby

container:postgresql:
extends:
- .single-image-build-base
needs:
- generate-environment
- manifest:mise

manifest:postgresql:
extends:
- .manifest-create-base
needs:
- generate-environment
- container:postgresql

container:sagittarius:
extends:
- .variant-image-build-base
needs:
- generate-environment
- manifest:ruby
- manifest:postgresql
variables:
Expand All @@ -221,6 +237,7 @@ manifest:sagittarius:
- ce
- ee
needs:
- generate-environment
- job: container:sagittarius
parallel:
matrix:
Expand All @@ -233,18 +250,21 @@ container:node:
extends:
- .single-image-build-base
needs:
- generate-environment
- manifest:mise

manifest:node:
extends:
- .manifest-create-base
needs:
- generate-environment
- container:node

container:sculptor:
extends:
- .variant-image-build-base
needs:
- generate-environment
- manifest:node
variables:
NEED_PROJECT_DOWNLOAD: 'true'
Expand All @@ -268,6 +288,7 @@ manifest:sculptor:
- ee
- cloud
needs:
- generate-environment
- job: container:sculptor
parallel:
matrix:
Expand Down
15 changes: 15 additions & 0 deletions .gitlab/ci/prepare.gitlab-ci.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,15 @@
generate-environment:
stage: prepare
image: alpine:3.22
script:
- echo "RETICULUM_CONTAINER_VERSION=$(cat VERSION)-experimental-$CI_PIPELINE_ID-$CI_COMMIT_SHA" > .gitlab/ci/env
- |
echo -e "\e[0Ksection_start:`date +%s`:glpa_summary\r\e[0KHeader of the summary"
grep 'RETICULUM_CONTAINER_VERSION=' .gitlab/ci/env
echo -e "\e[0Ksection_end:`date +%s`:glpa_summary\r\e[0K"
artifacts:
expire_in: 1 day
reports:
dotenv: .gitlab/ci/env
paths:
- .gitlab/ci/env
1 change: 1 addition & 0 deletions VERSION
Original file line number Diff line number Diff line change
@@ -0,0 +1 @@
0.0.0
12 changes: 6 additions & 6 deletions support/docker-compose.yml
Original file line number Diff line number Diff line change
Expand Up @@ -9,7 +9,7 @@ services:
POSTGRES_DB: sagittarius_production

sagittarius-rails-web:
image: ghcr.io/code0-tech/reticulum/ci-builds/sagittarius:${CI_PIPELINE_ID}-${SAGITTARIUS_VARIANT}
image: ghcr.io/code0-tech/reticulum/ci-builds/sagittarius:${RETICULUM_CONTAINER_VERSION}-${SAGITTARIUS_VARIANT}
networks:
- boot
volumes:
Expand All @@ -31,7 +31,7 @@ services:
- http://sagittarius-rails-web:3000/health/liveness

sagittarius-grpc:
image: ghcr.io/code0-tech/reticulum/ci-builds/sagittarius:${CI_PIPELINE_ID}-${SAGITTARIUS_VARIANT}
image: ghcr.io/code0-tech/reticulum/ci-builds/sagittarius:${RETICULUM_CONTAINER_VERSION}-${SAGITTARIUS_VARIANT}
networks:
- boot
volumes:
Expand All @@ -51,7 +51,7 @@ services:
- -js

aquila:
image: ghcr.io/code0-tech/reticulum/ci-builds/aquila:${CI_PIPELINE_ID}
image: ghcr.io/code0-tech/reticulum/ci-builds/aquila:${RETICULUM_CONTAINER_VERSION}
networks:
- boot
environment:
Expand All @@ -65,7 +65,7 @@ services:
- "8081:8081"

taurus:
image: ghcr.io/code0-tech/reticulum/ci-builds/taurus:${CI_PIPELINE_ID}
image: ghcr.io/code0-tech/reticulum/ci-builds/taurus:${RETICULUM_CONTAINER_VERSION}
networks:
- boot
environment:
Expand All @@ -77,7 +77,7 @@ services:
- "8082:8082"

draco:
image: ghcr.io/code0-tech/reticulum/ci-builds/draco:${CI_PIPELINE_ID}-${DRACO_VARIANT}
image: ghcr.io/code0-tech/reticulum/ci-builds/draco:${RETICULUM_CONTAINER_VERSION}-${DRACO_VARIANT}
networks:
- boot
environment:
Expand All @@ -89,7 +89,7 @@ services:
- "8083:8083"

sculptor:
image: ghcr.io/code0-tech/reticulum/ci-builds/sculptor:${CI_PIPELINE_ID}-${SCULPTOR_VARIANT}
image: ghcr.io/code0-tech/reticulum/ci-builds/sculptor:${RETICULUM_CONTAINER_VERSION}-${SCULPTOR_VARIANT}
networks:
- boot

Expand Down