Skip to content
Snippets Groups Projects
Commit 73c231bb authored by Vincent Texier's avatar Vincent Texier
Browse files

[fix] #127 fix keywords in .gitlab-ci.yml not compatible with gitlab v13.0

replace only/except by rules
parent 7cd56bfb
No related branches found
No related tags found
1 merge request!110Merge dev into master for v0.58.0 release
Pipeline #8833 waiting for manual action
...@@ -32,8 +32,8 @@ image: $DOCKER_IMAGE/$PYTHON_VERSION:latest ...@@ -32,8 +32,8 @@ image: $DOCKER_IMAGE/$PYTHON_VERSION:latest
- 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 $?"
.changes: .changes:
only: rules:
changes: - changes:
- duniterpy/**/*.py - duniterpy/**/*.py
- .gitlab-ci.yml - .gitlab-ci.yml
- Makefile - Makefile
...@@ -77,27 +77,29 @@ release: ...@@ -77,27 +77,29 @@ release:
extends: extends:
- .push_to_github - .push_to_github
stage: release stage: release
when: manual
script: script:
- poetry publish --build --username $PYPI_LOGIN --password $PYPI_PASSWORD - poetry publish --build --username $PYPI_LOGIN --password $PYPI_PASSWORD
only: rules:
- tags - if: $CI_COMMIT_TAG
- master when: manual
- if: $CI_COMMIT_BRANCH == "master"
when: manual
- when: never
release_test: release_test:
stage: release stage: release
when: manual
script: script:
- poetry config repositories.pypi_test https://test.pypi.org/legacy/ - poetry config repositories.pypi_test https://test.pypi.org/legacy/
- poetry publish --build --username $PYPI_TEST_LOGIN --password $PYPI_TEST_PASSWORD --repository pypi_test - poetry publish --build --username $PYPI_TEST_LOGIN --password $PYPI_TEST_PASSWORD --repository pypi_test
only: [tags] rules:
- if: $CI_COMMIT_TAG
when: manual
- if: $CI_COMMIT_BRANCH == "dev"
when: manual
- when: never
pages: pages:
stage: publish_doc stage: publish_doc
when: manual
only:
- tags
- master
script: script:
- poetry install - poetry install
- poetry run make docs - poetry run make docs
...@@ -107,3 +109,9 @@ pages: ...@@ -107,3 +109,9 @@ pages:
untracked: true untracked: true
paths: paths:
- public - public
rules:
- if: $CI_COMMIT_TAG
when: manual
- if: $CI_COMMIT_BRANCH == "master"
when: manual
- when: never
\ 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