Skip to content
GitLab
Explore
Sign in
Primary navigation
Search or go to…
Project
docker-template-repo
Manage
Activity
Members
Labels
Plan
Issues
Issue boards
Milestones
Wiki
JetBrains YouTrack
External wiki
Code
Merge requests
Repository
Branches
Commits
Tags
Repository graph
Compare revisions
Snippets
Build
Pipelines
Jobs
Pipeline schedules
Artifacts
Deploy
Releases
Package Registry
Container Registry
Model registry
Operate
Environments
Terraform modules
Monitor
Incidents
Service Desk
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
This is an archived project. Repository and other project resources are read-only.
Show more breadcrumbs
Prosper
docker-template-repo
Commits
ea2ecd11
Commit
ea2ecd11
authored
4 years ago
by
Griefed
Browse files
Options
Downloads
Patches
Plain Diff
Update gitlab-ci.yml
parent
5c644e0f
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
+9
-3
9 additions, 3 deletions
gitlab-ci.yml
with
9 additions
and
3 deletions
gitlab-ci.yml
+
9
−
3
View file @
ea2ecd11
...
@@ -7,6 +7,10 @@ variables:
...
@@ -7,6 +7,10 @@ variables:
DOCKER_TLS_CERTDIR
:
"
"
DOCKER_TLS_CERTDIR
:
"
"
DOCKER_VERSION
:
19.03.8
DOCKER_VERSION
:
19.03.8
#Docker version MUST match the version in the runner config.toml
#Docker version MUST match the version in the runner config.toml
DOCKER_HOST
:
tcp://docker:2376
services
:
-
docker:19.03.8-dind
create_readme
:
create_readme
:
stage
:
create_readme
stage
:
create_readme
...
@@ -37,9 +41,11 @@ create_readme:
...
@@ -37,9 +41,11 @@ create_readme:
build
:
build
:
stage
:
build
stage
:
build
image
:
docker:$DOCKER_VERSION
image
:
docker:$DOCKER_VERSION
services
:
-
docker:$DOCKER_VERSION-dind
script
:
script
:
-
echo "Build stage started."
-
echo "Build stage started."
-
docker info
-
docker info
-
docker build --network="host" -t $CI_PROJECT_NAME:latest .
-
docker login -u $CI_REGISTRY_USER -p $CI_REGISTRY_PASSWORD $CI_REGISTRY
-
docker pull $CI_REGISTRY_IMAGE:latest ||
true
-
docker build --cache-from $CI_REGISTRY_IMAGE:latest --tag $CI_REGISTRY_IMAGE:$CI_COMMIT_SHA --tag $CI_REGISTRY_IMAGE:latest .
-
docker push $CI_REGISTRY_IMAGE:$CI_COMMIT_SHA
-
docker push $CI_REGISTRY_IMAGE:latest
\ No newline at end of file
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