Skip to content
GitLab
Explore
Sign in
Register
Primary navigation
Search or go to…
Project
G
gitlab-ci-pipeline
Manage
Activity
Members
Labels
Plan
Issues
Issue boards
Milestones
Code
Merge requests
Repository
Branches
Commits
Tags
Repository graph
Compare revisions
Deploy
Releases
Container registry
Model registry
Analyze
Model experiments
Help
Help
Support
GitLab documentation
Compare GitLab plans
Community forum
Contribute to GitLab
Provide feedback
Terms and privacy
Keyboard shortcuts
?
Snippets
Groups
Projects
Show more breadcrumbs
IOPSYS
gitlab-ci-pipeline
Commits
74aed1d0
Unverified
Commit
74aed1d0
authored
2 years ago
by
Roman Azarenko
Browse files
Options
Downloads
Patches
Plain Diff
CI: add missing IS_DEFAULT_BRANCH variable
parent
73afd835
No related branches found
No related tags found
1 merge request
!18
CI: add missing IS_DEFAULT_BRANCH variable
Changes
1
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
.gitlab-ci.yml
+1
-0
1 addition, 0 deletions
.gitlab-ci.yml
with
1 addition
and
0 deletions
.gitlab-ci.yml
+
1
−
0
View file @
74aed1d0
...
@@ -35,6 +35,7 @@ update-docker-image:
...
@@ -35,6 +35,7 @@ update-docker-image:
script
:
script
:
# push to our registry
# push to our registry
-
if [ "${CI_COMMIT_REF_NAME:-}" = "${CI_DEFAULT_BRANCH}" ]; then IS_DEFAULT_BRANCH=1; fi
-
|
-
|
/kaniko/executor \
/kaniko/executor \
--context ${CI_PROJECT_DIR}/docker/code-analysis \
--context ${CI_PROJECT_DIR}/docker/code-analysis \
...
...
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