Skip to content
GitLab
Explore
Sign in
Primary navigation
Search or go to…
Project
A
ansible
Manage
Activity
Members
Labels
Plan
Issues
Issue boards
Milestones
Code
Merge requests
Repository
Branches
Commits
Tags
Repository graph
Compare revisions
Build
Pipelines
Jobs
Pipeline schedules
Artifacts
Deploy
Releases
Container registry
Model registry
Operate
Environments
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
Keyboard shortcuts
?
Snippets
Groups
Projects
Show more breadcrumbs
streampunk
ansible
Commits
438da5d5
Commit
438da5d5
authored
4 years ago
by
ale
Browse files
Options
Downloads
Patches
Plain Diff
Fix Docker build stage
parent
c9d24553
No related branches found
No related tags found
No related merge requests found
Changes
1
Show whitespace changes
Inline
Side-by-side
Showing
1 changed file
.gitlab-ci.yml
+4
-4
4 additions, 4 deletions
.gitlab-ci.yml
with
4 additions
and
4 deletions
.gitlab-ci.yml
+
4
−
4
View file @
438da5d5
...
@@ -6,17 +6,17 @@ stages:
...
@@ -6,17 +6,17 @@ stages:
docker_ci_image
:
docker_ci_image
:
variables
:
variables
:
IMAGE_TAG
:
$CI_REGISTRY_
NAM
E:$CI_COMMIT_REF_SLUG
IMAGE_TAG
:
$CI_REGISTRY_
IMAG
E:$CI_COMMIT_REF_SLUG
stage
:
build
stage
:
build
image
:
${CI_DEPENDENCY_PROXY_GROUP_IMAGE_PREFIX}/docker:stable
image
:
${CI_DEPENDENCY_PROXY_GROUP_IMAGE_PREFIX}/docker:stable
services
:
services
:
-
name
:
${CI_DEPENDENCY_PROXY_GROUP_IMAGE_PREFIX}/docker:dind
-
name
:
${CI_DEPENDENCY_PROXY_GROUP_IMAGE_PREFIX}/docker:dind
alias
:
docker
alias
:
docker
script
:
script
:
-
echo -n "$CI_JOB_TOKEN" | docker login -u gitlab-ci-token --password-stdin
$CI_REGISTRY_NAME
-
echo -n "$CI_JOB_TOKEN" | docker login -u gitlab-ci-token --password-stdin
registry.git.autistici.org
-
cd ci && docker build -build-arg ci_token=$CI_JOB_TOKEN --pull -t $IMAGE_TAG .
-
cd ci && docker build -build-arg ci_token=$CI_JOB_TOKEN --pull -t $IMAGE_TAG .
-
docker tag $IMAGE_TAG $CI_REGISTRY_
NAM
E:runner
-
docker tag $IMAGE_TAG $CI_REGISTRY_
IMAG
E:runner
-
docker push $CI_REGISTRY_
NAM
E:runner
-
docker push $CI_REGISTRY_
IMAG
E:runner
only
:
only
:
changes
:
changes
:
-
ci/**
-
ci/**
...
...
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