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
25 changes: 23 additions & 2 deletions .gitlab/ci/container-build.gitlab-ci.yml
Original file line number Diff line number Diff line change
Expand Up @@ -25,11 +25,21 @@
- amd64
- arm64
script:
- CACHE_TO=""
- |
if [ "$C0_GH_REF_NAME" = "main" ]; then
CACHE_TO="--cache-to type=registry,ref=ghcr.io/code0-tech/reticulum/ci-cache:${image}-${PLATFORM}"
fi
- >
build_image
$image
$CI_PIPELINE_ID
"--output type=registry,push-by-digest=true --metadata-file manifest-${CI_JOB_ID}.json"
"
--output type=registry,push-by-digest=true
--metadata-file manifest-${CI_JOB_ID}.json
--cache-from type=registry,ref=ghcr.io/code0-tech/reticulum/ci-cache:${image}-${PLATFORM}
$CACHE_TO
"
""
artifacts:
paths:
Expand All @@ -40,11 +50,22 @@
extends:
- .image-build-base
script:
- CACHE_TO=""
- |
if [ "$C0_GH_REF_NAME" = "main" ]; then
CACHE_TO="--cache-to type=registry,ref=ghcr.io/code0-tech/reticulum/ci-cache:${image}-${VARIANT}-${PLATFORM}"
fi
- >
build_image
$image
$CI_PIPELINE_ID
"--build-arg VARIANT=$VARIANT --output type=registry,push-by-digest=true --metadata-file manifest-${CI_JOB_ID}.json"
"
--build-arg VARIANT=$VARIANT
--output type=registry,push-by-digest=true
--metadata-file manifest-${CI_JOB_ID}.json
--cache-from type=registry,ref=ghcr.io/code0-tech/reticulum/ci-cache:${image}-${VARIANT}-${PLATFORM}
$CACHE_TO
"
""
artifacts:
paths:
Expand Down
1 change: 1 addition & 0 deletions container/sagittarius/Dockerfile.erb
Original file line number Diff line number Diff line change
Expand Up @@ -46,6 +46,7 @@ COPY projects/sagittarius/extensions/ee/app/ extensions/ee/app/
# Precompile bootsnap code for faster boot times
RUN bundle exec bootsnap precompile app/ lib/ <% if ee? %>extensions/ee/app/<% end %>

ARG RETICULUM_IMAGE_TAG=local
RUN echo "$RETICULUM_IMAGE_TAG" > VERSION

# Entrypoint prepares the database.
Expand Down