Skip to content
GitLab
Explore
Sign in
Primary navigation
Search or go to…
Project
Poetry
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
Analyze
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
docker
python3
Poetry
Commits
19192e66
Commit
19192e66
authored
4 months ago
by
Moul
Browse files
Options
Downloads
Patches
Plain Diff
Update CI syntax to latest standard and conventions
Remove second unnecessary login
parent
c10b396b
No related branches found
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
+14
-15
14 additions, 15 deletions
.gitlab-ci.yml
with
14 additions
and
15 deletions
.gitlab-ci.yml
+
14
−
15
View file @
19192e66
test_build_image
:
image
:
docker:
gi
t
image
:
docker:
lates
t
tags
:
-
docker
-
docker
services
:
-
docker:dind
-
docker:dind
script
:
-
docker build
3.9
-
docker build
3.10
...
...
@@ -14,42 +14,41 @@ test_build_image:
-
tags
.build_image
:
image
:
docker:
gi
t
image
:
docker:
lates
t
tags
:
-
docker
-
docker
services
:
-
docker:dind
-
docker:dind
script
:
-
docker login -u "
gitlab-ci-token" -p "$CI_JOB_TOKEN
" $CI_REGISTRY
-
docker login -u "
$CI_REGISTRY_USER" -p "$CI_REGISTRY_PASSWORD
" $CI_REGISTRY
-
docker build --pull -t "$CI_REGISTRY_IMAGE/$PYTHON_VERSION:$CI_COMMIT_TAG" $PYTHON_VERSION
-
docker login -u "gitlab-ci-token" -p "$CI_JOB_TOKEN" $CI_REGISTRY
-
docker push "$CI_REGISTRY_IMAGE/$PYTHON_VERSION:$CI_COMMIT_TAG"
-
docker tag "$CI_REGISTRY_IMAGE/$PYTHON_VERSION:$CI_COMMIT_TAG" "$CI_REGISTRY_IMAGE/$PYTHON_VERSION:latest"
-
docker push "$CI_REGISTRY_IMAGE/$PYTHON_VERSION:latest"
only
:
-
tags
rules
:
-
if
:
$CI_COMMIT_TAG
build
_3_
9
:
build
:3.
9
:
extends
:
.build_image
variables
:
PYTHON_VERSION
:
"
3.9"
build
_3_
10
:
build
:3.
10
:
extends
:
.build_image
variables
:
PYTHON_VERSION
:
"
3.10"
build
_3_
11
:
build
:3.
11
:
extends
:
.build_image
variables
:
PYTHON_VERSION
:
"
3.11"
build
_3_
12
:
build
:3.
12
:
extends
:
.build_image
variables
:
PYTHON_VERSION
:
"
3.12"
build
_3_
13
:
build
:3.
13
:
extends
:
.build_image
variables
:
PYTHON_VERSION
:
"
3.13"
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