File tree Expand file tree Collapse file tree
Expand file tree Collapse file tree Original file line number Diff line number Diff line change @@ -32,4 +32,5 @@ deployment:
3232 - echo "username:$PYPI_USERNAME" >> ~/.pypirc
3333 - echo "password:$PYPI_PASSWORD" >> ~/.pypirc
3434 - python setup.py sdist upload
35- - cd lambda && docker build .
35+ - export CANARI_VERSION=`python setup.py -V`
36+ - cd lambda && docker build --build-arg GITHUB_API_TOKEN=$GITHUB_API_TOKEN --build-arg CANARI_VERSION=$CANARI_VERSION .
Original file line number Diff line number Diff line change 11FROM amazonlinux:2017.03.1.20170812
22
3+ ARG GITHUB_API_TOKEN
4+ ARG CANARI_VERSION
5+
36COPY build_wheels.sh /tmp
47
58COPY upload-github-release-asset.sh /tmp
69
7- RUN sudo yum install -y gcc libxml2-devel libxslt-devel
10+ RUN set && yum install -y gcc libxml2-devel libxslt-devel python36 python27-pip
11+
12+ RUN pip-3.6 install wheel && pip-2.7 install wheel
813
9- RUN ./ build_wheels canari lxml safedexml six future setuptools
14+ RUN chmod +x /tmp/build_wheels.sh && /tmp/ build_wheels.sh canari==${CANARI_VERSION} lxml safedexml six future setuptools
You can’t perform that action at this time.
0 commit comments