Skip to content
GitLab
Explore
Sign in
Primary navigation
Search or go to…
Project
T
The Social Network
Manage
Activity
Members
Labels
Plan
Issues
Issue boards
Milestones
Wiki
Requirements
Code
Merge requests
Repository
Branches
Commits
Tags
Repository graph
Compare revisions
Snippets
Locked files
Build
Pipelines
Jobs
Pipeline schedules
Test cases
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
Code review analytics
Issue analytics
Insights
Model experiments
Help
Help
Support
GitLab documentation
Compare GitLab plans
GitLab community forum
Contribute to GitLab
Provide feedback
Keyboard shortcuts
?
Snippets
Groups
Projects
Show more breadcrumbs
Marc Feger
The Social Network
Commits
23d1a0e5
Commit
23d1a0e5
authored
3 years ago
by
Marc Feger
Browse files
Options
Downloads
Patches
Plain Diff
Update .gitlab-ci.yml to have a deploy stage for pypi
parent
7de20c46
No related branches found
No related tags found
1 merge request
!1
Merge feedingChickenWithChicken into main
Pipeline
#75033
failed
3 years ago
Stage: build
Stage: test
Stage: deploy
Changes
1
Pipelines
1
Show whitespace changes
Inline
Side-by-side
Showing
1 changed file
.gitlab-ci.yml
+15
-0
15 additions, 0 deletions
.gitlab-ci.yml
with
15 additions
and
0 deletions
.gitlab-ci.yml
+
15
−
0
View file @
23d1a0e5
...
...
@@ -6,6 +6,7 @@ services:
stages
:
-
build
-
test
-
deploy
before_script
:
-
docker version
...
...
@@ -33,3 +34,17 @@ test:
-
echo "Testing ..."
-
docker-compose -f docker-compose.ci.yml pull
-
docker-compose -f docker-compose.ci.yml run web sh -c "poetry run python manage.py makemigrations && poetry run python manage.py migrate && poetry run python manage.py test core -v 2"
deploy
:
stage
:
deploy
needs
:
-
test
script
:
-
echo "Deploying ..."
-
cd ./the_social_network
-
mw ./the_social_network ./not_needed
-
mw ./core ./the_social_network
-
pip install poetry
-
poetry --version
-
poetry config pypi-token.pypi __token__ $PYPI_TOKEN
-
poetry 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