Skip to content
GitLab
Explore
Sign in
Register
Primary navigation
Search or go to…
Project
C
CICD Example
Manage
Activity
Members
Labels
Plan
Issues
1
Issue boards
Milestones
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
Model registry
Operate
Environments
Terraform modules
Monitor
Incidents
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
RC Data Science
community-containers
CICD Example
Commits
cc1a8d52
Commit
cc1a8d52
authored
8 months ago
by
Matthew K Defenderfer
Browse files
Options
Downloads
Patches
Plain Diff
fixing things?
parent
b6ccbaea
No related branches found
No related tags found
No related merge requests found
Pipeline
#11536
failed with stages
in 2 minutes and 17 seconds
Changes
1
Pipelines
1
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
.gitlab-ci.yml
+3
-6
3 additions, 6 deletions
.gitlab-ci.yml
with
3 additions
and
6 deletions
.gitlab-ci.yml
+
3
−
6
View file @
cc1a8d52
...
@@ -14,12 +14,10 @@ variables:
...
@@ -14,12 +14,10 @@ variables:
PIP_INDEX_URL
:
"
https://__token__:${CI_JOB_TOKEN}@gitlab.com/api/v4/projects/$CI_PROJECT_ID/packages/pypi/simple"
PIP_INDEX_URL
:
"
https://__token__:${CI_JOB_TOKEN}@gitlab.com/api/v4/projects/$CI_PROJECT_ID/packages/pypi/simple"
PIP_EXTRA_INDEX_URL
:
"
https://pypi.org/simple"
PIP_EXTRA_INDEX_URL
:
"
https://pypi.org/simple"
before_script
:
-
pip install setuptools wheel build twine
build_package
:
build_package
:
stage
:
build
stage
:
build
script
:
script
:
-
pip install setuptools wheel build twine
-
python -m build
-
python -m build
artifacts
:
artifacts
:
paths
:
paths
:
...
@@ -32,11 +30,10 @@ test_package:
...
@@ -32,11 +30,10 @@ test_package:
-
pip install pytest
-
pip install pytest
-
pytest
# Run tests
-
pytest
# Run tests
publish_p
ackage
:
publish_p
ip
:
stage
:
publish
stage
:
publish
script
:
script
:
-
pip install twine
# Install twine to publish the package
-
TWINE_PASSWORD=${CI_JOB_TOKEN} TWINE_USERNAME=gitlab-ci-token python3 -m twine upload --repository-url ${CI_API_V4_URL}/projects/${CI_PROJECT_ID}/packages/pypi dist/*
-
twine upload dist/*
# Publish the package to the GitLab package registry
build_and_push_docker_image
:
build_and_push_docker_image
:
stage
:
publish
stage
:
publish
...
...
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