Skip to content
GitLab
Explore
Sign in
Register
Primary navigation
Search or go to…
Project
I
images
Manage
Activity
Members
Labels
Code
Merge requests
Repository
Branches
Commits
Tags
Repository graph
Compare revisions
Build
Pipelines
Jobs
Pipeline schedules
Artifacts
Deploy
Container Registry
Help
Help
Support
GitLab documentation
Compare GitLab plans
Community forum
Contribute to GitLab
Provide feedback
Keyboard shortcuts
?
Snippets
Groups
Projects
Show more breadcrumbs
varac-projects
images
Commits
95f97a3b
Unverified
Commit
95f97a3b
authored
5 months ago
by
Varac
Browse files
Options
Downloads
Patches
Plain Diff
timelimit-server: fix image tag
parent
7937ef04
No related branches found
Branches containing commit
No related tags found
No related merge requests found
Pipeline
#244357
failed
5 months ago
Stage: build
Changes
1
Pipelines
1
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
.gitlab-ci.yml
+6
-2
6 additions, 2 deletions
.gitlab-ci.yml
with
6 additions
and
2 deletions
.gitlab-ci.yml
+
6
−
2
View file @
95f97a3b
...
...
@@ -25,9 +25,11 @@ include:
-
|
# No dashes allowes in bash variable names
GIT_TAG_VAR="GIT_TAG_${BUILD_DIR//-/_}"
export $GIT_TAG_VAR
if [ -n "${!GIT_TAG_VAR}" ]; then
IMAGE_TAG="${!GIT_TAG_VAR}"
export
IMAGE_TAG="${!GIT_TAG_VAR}"
fi
-
|
if [ -z ${IMAGE_TAG+x} ]; then
if [ "$CI_COMMIT_REF_NAME" = $CI_DEFAULT_BRANCH ]; then
VERSION="latest"
...
...
@@ -41,13 +43,15 @@ include:
VERSION="branch-$SANITIZED"
fi
export IMAGE_TAG=$CI_REGISTRY_IMAGE:$VERSION
else
export IMAGE_TAG=$CI_REGISTRY_IMAGE:$IMAGE_TAG
fi
-
export BUILD_DIR=${BUILD_DIR:-$CI_JOB_NAME}
-
|
URL_VAR="GIT_URL_${BUILD_DIR//-/_}"
if [ -n "${!URL_VAR}" ]; then
dnf install -y git
git clone "${!URL_VAR}"
git clone
--depth 1 --branch "${!GIT_TAG_VAR}"
"${!URL_VAR}"
fi
-
cd $BUILD_DIR
-
export image="${CI_REGISTRY_IMAGE}/$BUILD_DIR"
...
...
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