Skip to content
GitLab
Explore
Sign in
Register
Primary navigation
Search or go to…
Project
H
hivemind
Manage
Activity
Members
Labels
Plan
Issues
Issue boards
Milestones
Wiki
Code
Merge requests
Repository
Branches
Commits
Tags
Repository graph
Compare revisions
Snippets
Deploy
Releases
Package registry
Container Registry
Model registry
Operate
Terraform modules
Monitor
Incidents
Analyze
Value stream analytics
Contributor analytics
Repository analytics
Model experiments
Help
Help
Support
GitLab documentation
Compare GitLab plans
Community forum
Contribute to GitLab
Provide feedback
Keyboard shortcuts
?
Snippets
Groups
Projects
Show more breadcrumbs
hive
hivemind
Commits
ab6d93de
Verified
Commit
ab6d93de
authored
1 year ago
by
Konrad Botor
Browse files
Options
Downloads
Patches
Plain Diff
Updated publishing script to publish the minimal image
parent
439abe11
No related branches found
No related tags found
2 merge requests
!827
Merge develop changes to master
,
!672
Updated publishing script to publish the minimal image
Changes
3
Hide whitespace changes
Inline
Side-by-side
Showing
3 changed files
.gitlab-ci.yaml
+1
-1
1 addition, 1 deletion
.gitlab-ci.yaml
haf
+1
-1
1 addition, 1 deletion
haf
scripts/ci-helpers/build_instance.sh
+8
-0
8 additions, 0 deletions
scripts/ci-helpers/build_instance.sh
with
10 additions
and
2 deletions
.gitlab-ci.yaml
+
1
−
1
View file @
ab6d93de
...
...
@@ -32,7 +32,7 @@ variables:
include
:
-
project
:
hive/haf
ref
:
af7101337e730655a6f7821f7840c17596d30c98
# develop
ref
:
4e9bfea03ef9511984f3ed54c6181d05b24cd960
# develop
file
:
/scripts/ci-helpers/prepare_data_image_job.yml
# implicitly pulls base.gitlab-ci.yml from common-ci-configuration
...
...
This diff is collapsed.
Click to expand it.
haf
@
4e9bfea0
Compare
af710133
...
4e9bfea0
Subproject commit
af7101337e730655a6f7821f7840c17596d30c98
Subproject commit
4e9bfea03ef9511984f3ed54c6181d05b24cd960
This diff is collapsed.
Click to expand it.
scripts/ci-helpers/build_instance.sh
+
8
−
0
View file @
ab6d93de
...
...
@@ -75,6 +75,7 @@ pwd
CI_IMAGE_TAG
=
${
CI_IMAGE_TAG
:-
"python-3.8-slim-1"
}
# see scripts/ci/build_ci_base_image.sh for the current tag
BUILD_OPTIONS
=(
"--platform=linux/amd64"
"--target=instance"
"--progress=plain"
)
TAG
=
"
${
REGISTRY
}
instance:
$BUILD_IMAGE_TAG
"
MINIMAL_TAG
=
"
${
REGISTRY
}
minimal-instance:
$BUILD_IMAGE_TAG
"
# On CI push the images to the registry
if
[[
-n
"
${
CI
:-}
"
]]
;
then
...
...
@@ -124,6 +125,13 @@ docker buildx build "${BUILD_OPTIONS[@]}" \
--tag
"
$TAG
"
\
--file
Dockerfile
.
# Since CI pushes the image directly to the registry, it needs to be pulled to be tagged
if
[[
-n
"
${
CI
:-}
"
]]
;
then
docker pull
"
$TAG
"
fi
docker tag
"
$TAG
"
"
$MINIMAL_TAG
"
[[
-n
"
${
DOT_ENV_FILENAME
:-}
"
]]
&&
echo
"
${
DOTENV_VAR_NAME
:-
IMAGE
}
=
$TAG
"
>
"
$DOT_ENV_FILENAME
"
popd
\ No newline at end of file
This diff is collapsed.
Click to expand it.
Preview
0%
Loading
Try again
or
attach a new file
.
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Save comment
Cancel
Please
register
or
sign in
to comment