Commit 646240e4 authored by Rémi Cailletaud's avatar Rémi Cailletaud

except pour docker dans les branches version-*

parent f2c245e5
......@@ -34,6 +34,8 @@ pypi:
only:
- /^version-.*$/
script:
- version=$(echo $CI_COMMIT_REF_NAME|cut -d "-" -f 2)
- sed -i -e "s/version='.*',/version='$version',/g" setup.py
- pip install twine
- pip wheel . -w wheelhouse
- twine upload --repository-url https://test.pypi.org/legacy/ wheelhouse/*
......@@ -37,12 +37,16 @@ pypi:
only:
- /^version-.*$/
script:
- version=$(echo $CI_COMMIT_REF_NAME|cut -d "-" -f 2)
- sed -i -e "s/version='.*',/version='$version',/g" setup.py
- pip install twine
- pip wheel . -w wheelhouse
- twine upload --repository-url https://test.pypi.org/legacy/ wheelhouse/*
build:
stage : build
except:
- /^version-.*$/
image: docker
services:
- docker:dind
......@@ -56,6 +60,8 @@ build:
deploy:
stage: deploy
except:
- /^version-.*$/
when: manual
image: docker
variables:
......
.job_template: &deploy_job
stage: deploy
except:
- /^version-.*$/
when: manual
image: docker
before_script:
......@@ -49,12 +51,16 @@ pypi:
only:
- /^version-.*$/
script:
- version=$(echo $CI_COMMIT_REF_NAME|cut -d "-" -f 2)
- sed -i -e "s/version='.*',/version='$version',/g" setup.py
- pip install twine
- pip wheel . -w wheelhouse
- twine upload --repository-url https://test.pypi.org/legacy/ wheelhouse/*
build:
stage : build
except:
- /^version-.*$/
image: docker
services:
- docker:dind
......
Dépôt pour TP CI
note : .gitlab-ci.yml ne peut être un lien symbolique :(
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment