Skip to content
GitLab
Explore
Sign in
Register
Primary navigation
Search or go to…
Project
workspaces
Manage
Activity
Members
Labels
Plan
Issues
Issue boards
Milestones
Wiki
Code
Merge requests
Repository
Branches
Commits
Tags
Repository graph
Compare revisions
Snippets
Build
Pipelines
Jobs
Pipeline schedules
Artifacts
Deploy
Releases
Package Registry
Model registry
Operate
Environments
Terraform modules
Monitor
Incidents
Analyze
Value stream analytics
Contributor analytics
CI/CD analytics
Repository analytics
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
ssa
workspaces
Merge requests
!50
-ops added CAPO_PATH variable to Dockerfile.base
Code
Review changes
Check out branch
Download
Patches
Plain diff
Merged
-ops added CAPO_PATH variable to Dockerfile.base
capo-path-to-base-image
into
main
Overview
0
Commits
1
Pipelines
4
Changes
2
Merged
Andrew Kapuscinski
requested to merge
capo-path-to-base-image
into
main
4 years ago
Overview
0
Commits
1
Pipelines
4
Changes
2
Expand
0
0
Merge request reports
Viewing commit
369d1eb9
Show latest version
2 files
+
5
−
3
Inline
Compare changes
Side-by-side
Inline
Show whitespace changes
Show one file at a time
Files
2
Search (e.g. *.vue) (Ctrl+P)
369d1eb9
-ops added CAPO_PATH variable to Dockerfile.base
· 369d1eb9
Andrew Kapuscinski
authored
4 years ago
.gitlab-ci.yml
+
4
−
3
Options
@@ -31,7 +31,8 @@ include:
build base image
:
stage
:
build-base
script
:
-
docker build -t ${REGISTRY_URL}/ops/base:${PROJECT_NAME} -f Dockerfile.base . ; \
-
docker build -t ${REGISTRY_URL}/ops/base:${PROJECT_NAME} -f Dockerfile.base .
-
docker tag ${REGISTRY_URL}/ops/base:${PROJECT_NAME} ${REGISTRY_URL}/ops/base:${CI_COMMIT_SHORT_SHA}
rules
:
-
if
:
'
$CI_PIPELINE_SOURCE
==
"merge_request_event"
&&
$CI_COMMIT_MESSAGE
=~
/\A(?i)-ops/'
changes
:
@@ -43,11 +44,11 @@ push base image:
script
:
-
echo "$HARBOR_PASSWORD" | docker login -u "$HARBOR_USER" --password-stdin $REGISTRY_URL
-
docker push ${REGISTRY_URL}/ops/base:${PROJECT_NAME}
-
docker push ${REGISTRY_URL}/ops/base:${CI_COMMIT_SHORT_SHA}
rules
:
-
if
:
'
$CI_
PIPELINE_SOURCE
==
"merge_request_event"
&&
$CI_COMMIT_MESSAGE
=~
/\A(?i)-ops/'
-
if
:
'
$CI_
COMMIT_BRANCH
==
$CI_DEFAULT_BRANCH
&&
$CI_COMMIT_MESSAGE
=~
/\A(?i)-ops/'
changes
:
-
Dockerfile.base
when
:
always
# Build Stages
build dev workflow
:
Loading