Skip to content
GitLab
Explore
Sign in
Primary navigation
Search or go to…
Project
D
docker-rl9-ci
Manage
Activity
Members
Labels
Plan
Wiki
Code
Merge requests
0
Repository
Branches
Commits
Tags
Repository graph
Compare revisions
Snippets
Build
Pipelines
Jobs
Pipeline schedules
Artifacts
Deploy
Releases
Package Registry
Container Registry
Operate
Environments
Terraform modules
Analyze
Value stream analytics
Contributor analytics
CI/CD analytics
Repository analytics
Help
Help
Support
GitLab documentation
Compare GitLab plans
Community forum
Contribute to GitLab
Provide feedback
Keyboard shortcuts
?
Snippets
Groups
Projects
Show more breadcrumbs
Quang tru HUYNH
docker-rl9-ci
Commits
16b6aadb
Commit
16b6aadb
authored
1 year ago
by
Quang tru HUYNH
Browse files
Options
Downloads
Patches
Plain Diff
fix deprecated CI variable
parent
4b7854bd
No related branches found
No related tags found
No related merge requests found
Pipeline
#109372
failed with stage
Stage:
in 17 seconds
Changes
1
Pipelines
1
Hide 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 @
16b6aadb
...
...
@@ -8,10 +8,10 @@ stages:
build
:
stage
:
build
script
:
-
docker login -u gitlab-ci-token -p "$CI_
BUILD
_TOKEN" registry-gitlab.pasteur.fr
-
docker build --pull -t "$CI_REGISTRY_IMAGE:$CI_
BUILD
_REF_NAME" .
-
docker push "$CI_REGISTRY_IMAGE:$CI_
BUILD
_REF_NAME"
-
docker tag "$CI_REGISTRY_IMAGE:$CI_
BUILD
_REF_NAME" "$CI_REGISTRY_IMAGE:$CI_COMMIT_SHORT_SHA"
-
docker login -u gitlab-ci-token -p "$CI_
JOB
_TOKEN" registry-gitlab.pasteur.fr
-
docker build --pull -t "$CI_REGISTRY_IMAGE:$CI_
COMMIT
_REF_NAME" .
-
docker push "$CI_REGISTRY_IMAGE:$CI_
COMMIT
_REF_NAME"
-
docker tag "$CI_REGISTRY_IMAGE:$CI_
COMMIT
_REF_NAME" "$CI_REGISTRY_IMAGE:$CI_COMMIT_SHORT_SHA"
-
docker push "$CI_REGISTRY_IMAGE:$CI_COMMIT_SHORT_SHA"
-
docker tag "$CI_REGISTRY_IMAGE:$CI_COMMIT_SHORT_SHA" "$CI_REGISTRY_IMAGE:latest"
-
docker push "$CI_REGISTRY_IMAGE:latest"
...
...
This diff is collapsed.
Click to expand it.
Preview
0%
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