Skip to content
Snippets Groups Projects
Commit cfdd1f9d authored by Grégoire Kubler's avatar Grégoire Kubler
Browse files

feat : created dedicated deploy file to avoid mixing includes

parent 7fef11c4
Branches dev
No related tags found
No related merge requests found
include:
- local: '/.gitlab/ci/release/template.gitlab-ci.yml'
- local: '/.gitlab/ci/release/deploy.gitlab-ci.yml'
release:pip:ubuntu:
extends: .release:pip:template
......
include:
- local: '/.gitlab/ci/release/template.gitlab-ci.yml'
- local: '/.gitlab/ci/release/deploy.gitlab-ci.yml'
release:pip:windows:
extends: .release:pip:template
......
##################################
# DEPLOY
include:
- project: "eclipsefdn/it/releng/gitlab-runner-service/gitlab-ci-templates"
file: "jobs/secrets.gitlab-ci.yml"
.deploy:template:
stage: deploy
tags:
- origin:eclipse # allow to target eclipse runner that holds the key for pypi upload
image : eclipsecbi/buildpack-deps
extends:
- .rules:deploy
- .secrets # given by the file included just above
id_tokens:
VAULT_ID_TOKEN:
aud: https://gitlab.eclipse.org
secrets:
TWINE_USERNAME:
vault: $EF_PROJECT_ID/pypi.org/username@cbi
file: false
TWINE_PASSWORD:
vault: $EF_PROJECT_ID/pypi.org/api-token@cbi
file: false
before_script:
- curl https://bootstrap.pypa.io/get-pip.py --output getpip.py
- python3 getpip.py --break-system-packages
- python3 -m pip install twine --break-system-packages
script:
- export WHEELS=$(find wheelhouse/ -name "$CI_PROJECT_NAME*.whl")
- echo "WHEELS FOUND :$WHEELS"
- echo $TWINE_USERNAME
- echo $TWINE_PASSWORD
- python3 -m twine upload --verbose $WHEELS
.deploy:pip:ubuntu:template:
needs: [release:pip:ubuntu]
extends:
- .deploy:template
- .rules:deploy
.deploy:pip:windows:template:
needs: [release:pip:windows]
extends:
- .deploy:template
- .rules:deploy
include:
- local: '/.gitlab/ci/release/template.gitlab-ci.yml'
- local: '/.gitlab/ci/release/deploy.gitlab-ci.yml'
release:pip:ubuntu:
extends: .release:pip:template
......
......@@ -13,53 +13,3 @@ include:
paths:
- wheelhouse/
expire_in: 1 week
##################################
# DEPLOY
include:
- project: "eclipsefdn/it/releng/gitlab-runner-service/gitlab-ci-templates"
file: "jobs/secrets.gitlab-ci.yml"
.deploy:template:
stage: deploy
tags:
- origin:eclipse # allow to target eclipse runner that holds the key for pypi upload
image : eclipsecbi/buildpack-deps
extends:
- .rules:deploy
- .secrets # given by the file included just above
id_tokens:
VAULT_ID_TOKEN:
aud: https://gitlab.eclipse.org
secrets:
TWINE_USERNAME:
vault: $EF_PROJECT_ID/pypi.org/username@cbi
file: false
TWINE_PASSWORD:
vault: $EF_PROJECT_ID/pypi.org/api-token@cbi
file: false
before_script:
- curl https://bootstrap.pypa.io/get-pip.py --output getpip.py
- python3 getpip.py --break-system-packages
- python3 -m pip install twine --break-system-packages
script:
- export WHEELS=$(find wheelhouse/ -name "$CI_PROJECT_NAME*.whl")
- echo "WHEELS FOUND :$WHEELS"
- echo $TWINE_USERNAME
- echo $TWINE_PASSWORD
- python3 -m twine upload --verbose $WHEELS
.deploy:pip:ubuntu:template:
needs: [release:pip:ubuntu]
extends:
- .deploy:template
- .rules:deploy
.deploy:pip:windows:template:
needs: [release:pip:windows]
extends:
- .deploy:template
- .rules:deploy
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment