forked from eiwa-dev/uodm
-
Notifications
You must be signed in to change notification settings - Fork 0
/
bitbucket-pipelines.yml
29 lines (28 loc) · 1.15 KB
/
bitbucket-pipelines.yml
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
# This is a sample build configuration for Python.
# Check our guides at https://confluence.atlassian.com/x/VYk8Lw for more examples.
# Only use spaces to indent your .yml configuration.
# -----
# You can specify a custom docker image from Docker Hub as your build environment.
image: python:3.5.1
pipelines:
branches:
master:
- step:
script: # Modify the commands below to build your repository.
- pip install -U devpi-client
- PYPI_URL="https://$PYPI_SERVER_LOGIN@$PYPI_SERVER/"
- echo "${PYPI_URL}"
- devpi use "${PYPI_URL}"
- devpi login $DEVPI_USER --password "$DEVPI_PASS"
- devpi use $DEVPI_INDEX
- devpi upload --no-vcs
- echo "Push repo"
- mkdir -p ~/.ssh
- echo $OTHER_REPO_FINGERPRINTS_b64 | base64 -d >> ~/.ssh/known_hosts
- echo >> ~/.ssh/known_hosts
- chmod 600 ~/.ssh/known_hosts
- echo $SSH_GIT_KEY_b64 | base64 -d > ~/.ssh/id_rsa
- echo >> ~/.ssh/id_rsa
- cat ~/.ssh/id_rsa
- chmod 600 ~/.ssh/id_rsa
- git push -uf $OTHER_REPO master