Skip to content
GitLab
Explore
Sign in
Primary navigation
Search or go to…
Project
C
ci-docker-images
Manage
Activity
Members
Labels
Plan
Issues
Issue boards
Milestones
Iterations
Requirements
Code
Merge requests
Repository
Branches
Commits
Tags
Repository graph
Compare revisions
Locked files
Build
Pipelines
Jobs
Pipeline schedules
Test cases
Artifacts
Deploy
Container Registry
Model registry
Monitor
Service Desk
Analyze
Value stream analytics
Contributor analytics
CI/CD analytics
Repository analytics
Code review analytics
Issue analytics
Insights
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
Algorithms Library Toolkit
infrastructure
ci-docker-images
Commits
60cb0226
Unverified
Commit
60cb0226
authored
2 years ago
by
Tomáš Pecka
Browse files
Options
Downloads
Patches
Plain Diff
ci: simplify CI job file
parent
bfc37747
No related branches found
No related tags found
No related merge requests found
Pipeline
#187638
failed
2 years ago
Stage: deploy
Changes
1
Pipelines
1
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
.gitlab-ci.yml
+5
-17
5 additions, 17 deletions
.gitlab-ci.yml
with
5 additions
and
17 deletions
.gitlab-ci.yml
+
5
−
17
View file @
60cb0226
...
...
@@ -15,6 +15,11 @@ stages:
-
apk add --no-cache docker
-
docker info
-
docker login -u gitlab-ci-token -p $CI_JOB_TOKEN $CI_REGISTRY
dependencies
:
[]
.push-only-job
:
&push-only-job
<<
:
*docker_template
stage
:
deploy
script
:
-
IMAGE="${CI_JOB_NAME#deploy:}"
-
IMAGE_NAME="${CI_REGISTRY_IMAGE}/${IMAGE}:latest"
...
...
@@ -22,26 +27,9 @@ stages:
-
echo "Building image '${IMAGE}' as '${IMAGE_NAME}'"
-
docker build -t "$IMAGE_NAME" .
-
docker push "$IMAGE_NAME"
dependencies
:
[]
.push-only-job
:
&push-only-job
<<
:
*docker_template
stage
:
deploy
.create-local-copy
:
©-job
stage
:
deploy
cache
:
{}
dependencies
:
[]
variables
:
DOCKER_DRIVER
:
overlay2
DOCKER_HOST
:
docker
services
:
-
name
:
gitlab.fit.cvut.cz:5000/algorithms-library-toolkit/infrastructure/ci-docker-images/docker:dind
alias
:
docker
before_script
:
-
apk add --no-cache docker
-
docker info
-
docker login -u gitlab-ci-token -p $CI_JOB_TOKEN $CI_REGISTRY
script
:
-
IMAGE="${CI_JOB_NAME#copy:}"
-
docker pull "${IMAGE}"
...
...
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