Skip to content

Commit

Permalink
upgrade pip
Browse files Browse the repository at this point in the history
Signed-off-by: Adam Stokes <51892+adam-stokes@users.noreply.github.com>
  • Loading branch information
adam-stokes committed Oct 6, 2020
1 parent 8016595 commit b4306e6
Show file tree
Hide file tree
Showing 3 changed files with 9 additions and 4 deletions.
4 changes: 2 additions & 2 deletions jobs/build-debs.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -30,11 +30,11 @@
python3.8 -m venv venv
venv/bin/python -m pip install pip-tools
venv/bin/pip-sync requirements.txt
bin/lxd-launcher teardown --container-name deb-build
bin/lxd-launcher teardown --container-name deb-build || true
bin/lxd-launcher build \
--container-name deb-build \
--playbook jobs/build-debs/debuilder-playbook.yml
sudo lxc exec deb-build -- base -c "/root/jenkins/run.sh"
sudo lxc exec deb-build -- bash -c "/root/jenkins/run.sh"
bin/lxd-launcher teardown --container-name deb-build
- job:
Expand Down
3 changes: 3 additions & 0 deletions jobs/build-debs/debuilder-playbook.yml
Original file line number Diff line number Diff line change
Expand Up @@ -25,6 +25,9 @@
python3-dev \
python3-pip \
tox
- name: upgrade system pip
shell: |
pip3 install pip --upgrade
- name: copy ssh creds
copy:
src: "{{ lookup('env', 'CDKBOTSSHCREDS') }}"
Expand Down
6 changes: 4 additions & 2 deletions jobs/build-debs/run.sh.j2
Original file line number Diff line number Diff line change
@@ -1,10 +1,12 @@
#!/bin/bash

set -x

export CDKBOT_GH_USR="{{ lookup('env', 'CDKBOT_GH_USER') }}"
export CDKBOT_GH_PSW="{{ lookup('env', 'CDKBOT_GH_PSW') }}"
K8S_VERSION="{{ lookup('env', 'K8S_VERSION') }}"


cd /root/jenkins
TOX_WORK_DIR=.tox tox -e py3 -- python jobs/build-debs/build-debs.py build-debs \
pip3 install -rrequirements.txt
PYTHONPATH=. python3 jobs/build-debs/build-debs.py build-debs \
--version "$K8S_VERSION"

0 comments on commit b4306e6

Please sign in to comment.