Skip to content
GitLab
Explore
Sign in
Primary navigation
Search or go to…
Project
DuniterPy
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
Model registry
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
clients
python
DuniterPy
Commits
ece6a6d4
Commit
ece6a6d4
authored
5 years ago
by
Moul
Browse files
Options
Downloads
Patches
Plain Diff
[ci]
#118
: Remove GitHub push in favor of GitLab mirroring feature
parent
7cf65742
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
+0
-21
0 additions, 21 deletions
.gitlab-ci.yml
with
0 additions
and
21 deletions
.gitlab-ci.yml
+
0
−
21
View file @
ece6a6d4
...
@@ -10,25 +10,6 @@ variables:
...
@@ -10,25 +10,6 @@ variables:
image
:
$DOCKER_IMAGE/$PYTHON_VERSION:latest
image
:
$DOCKER_IMAGE/$PYTHON_VERSION:latest
.push_to_github
:
tags
:
-
github
after_script
:
# remove all files in current repo
-
rm -rf ./*
-
rm -rf .git*
# do a mirror clone in current repo
-
git clone --mirror $CI_REPOSITORY_URL .
# do config for github push
-
git remote add github $GITHUB_URL_AND_KEY
-
git config --global user.email "contact@duniter.org"
-
git config --global user.name "Duniter"
# remove refs about merge requests
-
bash -c "cat packed-refs | grep -v 'refs/merge-requests' > packed-refs-new; echo 'Removed merge-requests refs.'"
-
mv packed-refs-new packed-refs
# github push
-
bash -c "git push --force --mirror github 2>&1 | grep -v duniter-gitlab; echo $?"
.code_changes
:
.code_changes
:
only
:
only
:
changes
:
changes
:
...
@@ -105,8 +86,6 @@ tests-3.8:
...
@@ -105,8 +86,6 @@ tests-3.8:
tags
:
[
poetry-78
]
tags
:
[
poetry-78
]
release
:
release
:
extends
:
-
.push_to_github
stage
:
release
stage
:
release
script
:
script
:
-
poetry publish --build --username $PYPI_LOGIN --password $PYPI_PASSWORD
-
poetry publish --build --username $PYPI_LOGIN --password $PYPI_PASSWORD
...
...
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