Skip to content
GitLab
Explore
Sign in
Primary navigation
Search or go to…
Project
0
0-list
Manage
Activity
Members
Labels
Plan
Issues
Issue boards
Milestones
Iterations
Wiki
Requirements
Code
Repository
Branches
Commits
Tags
Repository graph
Compare revisions
Snippets
Locked files
Build
Pipelines
Jobs
Pipeline schedules
Test cases
Artifacts
Deploy
Releases
Package Registry
Container Registry
Model registry
Operate
Environments
Terraform modules
Monitor
Incidents
Analyze
Value stream analytics
Contributor analytics
CI/CD analytics
Repository analytics
Issue analytics
Insights
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
SO2
0-list
Commits
42818798
Commit
42818798
authored
2 years ago
by
Baruta Daniel Mihail
Browse files
Options
Downloads
Patches
Plain Diff
Add docker build in CI
parent
bb265074
No related branches found
Branches containing commit
No related tags found
No related merge requests found
Changes
1
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
.gitlab-ci.yml
+22
-1
22 additions, 1 deletion
.gitlab-ci.yml
with
22 additions
and
1 deletion
.gitlab-ci.yml
+
22
−
1
View file @
42818798
image
:
docker:19.03.12
services
:
-
docker:19.03.12-dind
stages
:
-
build
-
test
variables
:
CONTAINER_RELEASE_IMAGE
:
$CI_REGISTRY_IMAGE:latest
before_script
:
-
docker login -u $CI_REGISTRY_USER -p $CI_REGISTRY_PASSWORD $CI_REGISTRY
build
:
stage
:
build
script
:
-
docker build --pull -t $CONTAINER_RELEASE_IMAGE .
-
docker push $CONTAINER_RELEASE_IMAGE
checker
:
stage
:
test
image
:
name
:
jokeswar/perfect-assignment
name
:
$CONTAINER_RELEASE_IMAGE
script
:
-
echo ""
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