Skip to content

Commit c2a180f

Browse files
committed
Add cloud build for sagittarius
1 parent d7d2420 commit c2a180f

4 files changed

Lines changed: 12 additions & 2 deletions

File tree

.gitlab/ci/container-boot.gitlab-ci.yml

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -25,6 +25,7 @@
2525
- SAGITTARIUS_VARIANT:
2626
- ce
2727
- ee
28+
- cloud
2829
PLATFORM:
2930
- amd64
3031
- arm64

.gitlab/ci/container-build.gitlab-ci.yml

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -252,6 +252,7 @@ container:sagittarius:
252252
- VARIANT:
253253
- ce
254254
- ee
255+
- cloud
255256
PLATFORM:
256257
- amd64
257258
- arm64
@@ -264,6 +265,7 @@ manifest:sagittarius:
264265
- VARIANT:
265266
- ce
266267
- ee
268+
- cloud
267269
needs:
268270
- generate-environment
269271
- job: container:sagittarius

container/sagittarius/Dockerfile.erb

Lines changed: 5 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -39,12 +39,15 @@ COPY projects/sagittarius/config/ config/
3939
COPY projects/sagittarius/lib/ lib/
4040
COPY projects/sagittarius/db/ db/
4141
COPY projects/sagittarius/app/ app/
42-
<% if ee? %>
42+
<% if ee? || cloud? %>
4343
COPY projects/sagittarius/extensions/ee/app/ extensions/ee/app/
4444
<% end %>
45+
<% if cloud? %>
46+
COPY projects/sagittarius/extensions/cloud/app/ extensions/cloud/app/
47+
<% end %>
4548

4649
# Precompile bootsnap code for faster boot times
47-
RUN bundle exec bootsnap precompile app/ lib/ <% if ee? %>extensions/ee/app/<% end %>
50+
RUN bundle exec bootsnap precompile app/ lib/ <% if ee? || cloud? %>extensions/ee/app/<% end %> <% if cloud? %>extensions/cloud/app/<% end %>
4851

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

container/sagittarius/renderDockerfile

Lines changed: 4 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -7,5 +7,9 @@ def ee?
77
ENV['VARIANT'].eql?('ee')
88
end
99

10+
def cloud?
11+
ENV['VARIANT'].eql?('cloud')
12+
end
13+
1014
template = ERB.new(File.read("#{__dir__}/Dockerfile.erb"), trim_mode: '-')
1115
File.write("#{__dir__}/Dockerfile", template.result)

0 commit comments

Comments
 (0)