Skip to content
GitLab
Explore
Sign in
Primary navigation
Search or go to…
Project
duniter
Manage
Activity
Members
Labels
Plan
Issues
Issue boards
Milestones
Wiki
Code
Merge requests
Repository
Branches
Commits
Tags
Repository graph
Compare revisions
Build
Pipelines
Jobs
Pipeline schedules
Artifacts
Deploy
Releases
Container Registry
Model registry
Monitor
Service Desk
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
nodes
typescript
duniter
Commits
fa52b6a3
Commit
fa52b6a3
authored
7 years ago
by
Éloïs
Browse files
Options
Downloads
Patches
Plain Diff
Update .gitlab-ci.yml
parent
5653926a
No related branches found
No related tags found
2 merge requests
!1222
Add startup scripts
,
!1220
Stable/ws2p v1.1 trymerge
Changes
1
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
.gitlab-ci.yml
+45
-0
45 additions, 0 deletions
.gitlab-ci.yml
with
45 additions
and
0 deletions
.gitlab-ci.yml
+
45
−
0
View file @
fa52b6a3
stages
:
-
github-sync
-
test
before_script
:
before_script
:
-
export NVM_DIR="$HOME/.nvm"
-
export NVM_DIR="$HOME/.nvm"
-
. "$NVM_DIR/nvm.sh"
-
. "$NVM_DIR/nvm.sh"
push_to_github
:
stage
:
github-sync
variables
:
GIT_STRATEGY
:
none
tags
:
-
github
before_script
:
-
'
'
script
:
-
rm -rf ./*
-
rm -rf .git
-
git clone --mirror $CI_REPOSITORY_URL .
-
git remote add github $GITHUB_URL_AND_KEY
-
git config --global user.email "contact@duniter.org"
-
git config --global user.name "Duniter"
# Job would fail if we don't remove refs about pull requests
-
bash -c "cat packed-refs | grep -v 'refs/pull' > packed-refs-new; echo 'Removed pull refs.'"
-
mv packed-refs-new packed-refs
-
bash -c "git push --force --mirror github 2>&1 | grep -v duniter-gitlab; echo $?"
enforce_readme
:
stage
:
github-sync
variables
:
GIT_STRATEGY
:
none
tags
:
-
github
before_script
:
-
'
'
script
:
-
rm -rf ./*
-
rm -rf .git
-
git clone $GITHUB_URL_AND_KEY .
-
git config --global user.email "contact@duniter.org"
-
git config --global user.name "Duniter"
-
git checkout master
-
cat .github/github_disclaimer.md > README.md.new
-
cat README.md >> README.md.new
-
mv README.md.new README.md
-
git commit -am "Enforce github readme"
-
git push origin master
test
:
test
:
stage
:
test
stage
:
test
tags
:
tags
:
...
...
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