Skip to content
GitLab
Explore
Sign in
Register
Primary navigation
Search or go to…
Project
C
clive
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
Environments
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
clive
Commits
0394ce33
Commit
0394ce33
authored
1 year ago
by
Mateusz Żebrak
Committed by
Bartek Wrona
1 year ago
Browse files
Options
Downloads
Patches
Plain Diff
Include context specific name in the latest tag for stable images
parent
68ae3cd0
No related branches found
No related tags found
3 merge requests
!186
V1.27.5.0 release
,
!174
RELEASE: 1
,
!116
Create an additional, replacable "latest" tag with stable images
Changes
2
Hide whitespace changes
Inline
Side-by-side
Showing
2 changed files
.gitlab-ci.yml
+1
-1
1 addition, 1 deletion
.gitlab-ci.yml
scripts/ci-helpers/build_instance.sh
+5
-3
5 additions, 3 deletions
scripts/ci-helpers/build_instance.sh
with
6 additions
and
4 deletions
.gitlab-ci.yml
+
1
−
1
View file @
0394ce33
...
...
@@ -199,7 +199,7 @@ build_and_push_clive_testnet_image:
BUILD_INSTANCE_ARGS
:
"
--image-path-suffix=-${CI_COMMIT_REF_NAME}"
after_script
:
-
source docker_image_name.env
# required: https://gitlab.syncad.com/hive/clive/-/jobs/622075
-
export LATEST_IMAGE_TAG="${CLIVE_IMAGE_PATH}:latest"
-
export LATEST_IMAGE_TAG="${CLIVE_IMAGE_PATH}:
${CLIVE_IMAGE_TAG_PREFIX}-
latest"
-
echo Tagging ${CLIVE_IMAGE_NAME} with additional ${LATEST_IMAGE_TAG}
-
docker tag ${CLIVE_IMAGE_NAME} ${LATEST_IMAGE_TAG}
-
docker push ${LATEST_IMAGE_TAG}
...
...
This diff is collapsed.
Click to expand it.
scripts/ci-helpers/build_instance.sh
+
5
−
3
View file @
0394ce33
...
...
@@ -90,8 +90,9 @@ pushd "$SRCROOTDIR"
export
DOCKER_BUILDKIT
=
1
CLIVE_IMAGE_PATH
=
"
${
REGISTRY
}${
IMAGE_TAG_PREFIX
}
instance
${
IMAGE_PATH_SUFFIX
}
"
CLIVE_IMAGE_NAME
=
"
${
CLIVE_IMAGE_PATH
}
:
${
IMAGE_TAG_PREFIX
}
instance-
${
BUILD_IMAGE_TAG
}
"
CLIVE_IMAGE_TAG_PREFIX
=
"
${
IMAGE_TAG_PREFIX
}
instance"
CLIVE_IMAGE_PATH
=
"
${
REGISTRY
}${
CLIVE_IMAGE_TAG_PREFIX
}${
IMAGE_PATH_SUFFIX
}
"
CLIVE_IMAGE_NAME
=
"
${
CLIVE_IMAGE_PATH
}
:
${
CLIVE_IMAGE_TAG_PREFIX
}
-
${
BUILD_IMAGE_TAG
}
"
docker build
--target
=
${
DOCKER_TARGET
}
\
--build-arg
CI_REGISTRY_IMAGE
=
$REGISTRY
\
...
...
@@ -102,5 +103,6 @@ docker build --target=${DOCKER_TARGET} \
popd
echo
"CLIVE_IMAGE_PATH=
${
CLIVE_IMAGE_PATH
}
"
>
docker_image_name.env
echo
"CLIVE_IMAGE_TAG_PREFIX=
${
CLIVE_IMAGE_TAG_PREFIX
}
"
>
docker_image_name.env
echo
"CLIVE_IMAGE_PATH=
${
CLIVE_IMAGE_PATH
}
"
>>
docker_image_name.env
echo
"CLIVE_IMAGE_NAME=
${
CLIVE_IMAGE_NAME
}
"
>>
docker_image_name.env
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