Skip to content
Snippets Groups Projects
Commit a967cb4a authored by Cédric Moreau's avatar Cédric Moreau
Browse files

[fix] ci: back to normal

parent 6b83aeef
No related branches found
No related tags found
No related merge requests found
Pipeline #2620 passed
stages: stages:
- github-sync
- deploy - deploy
#push_to_github: push_to_github:
# stage: github-sync stage: github-sync
# variables: variables:
# GIT_STRATEGY: none GIT_STRATEGY: none
# tags: tags:
# - github - github
# script: script:
# - rm -rf ./* - rm -rf ./*
# - rm -rf .git - rm -rf .git
# - git clone --mirror $CI_REPOSITORY_URL . - git clone --mirror $CI_REPOSITORY_URL .
# - git remote add github $GITHUB_URL_AND_KEY - git remote add github $GITHUB_URL_AND_KEY
# - git config --global user.email "contact@duniter.org" - git config --global user.email "contact@duniter.org"
# - git config --global user.name "Duniter" - git config --global user.name "Duniter"
# # Job would fail if we don't remove refs about pull requests # 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.'" - bash -c "cat packed-refs | grep -v 'refs/pull' > packed-refs-new; echo 'Removed pull refs.'"
# - mv packed-refs-new packed-refs - mv packed-refs-new packed-refs
# - bash -c "git push --force --mirror github 2>&1 | grep -v duniter-gitlab; echo $?" - bash -c "git push --force --mirror github 2>&1 | grep -v duniter-gitlab; echo $?"
publish: publish:
stage: deploy stage: deploy
...@@ -30,14 +31,3 @@ publish: ...@@ -30,14 +31,3 @@ publish:
script: script:
- echo '//registry.npmjs.org/:_authToken=${NPM_TOKEN}'>.npmrc - echo '//registry.npmjs.org/:_authToken=${NPM_TOKEN}'>.npmrc
- npm publish - npm publish
\ No newline at end of file
force_publish:
stage: deploy
image: node:6.12-alpine
tags:
- nodejs
when: manual
script:
- export NPM_TOKEN="$NPM_TOKEN"
- echo '//registry.npmjs.org/:_authToken=${NPM_TOKEN}'>.npmrc
- npm publish
\ No newline at end of file
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Please register or to comment