Drone: correctie pipeline

This commit is contained in:
Marcel Nijenhof
2020-09-08 15:05:33 +02:00
parent 7aa6ffc3d4
commit 6900b9fc57

View File

@@ -19,10 +19,12 @@ steps:
- python3 setup.py sdist bdist_wheel - python3 setup.py sdist bdist_wheel
- name: Versie toevoegen aan download - name: Versie toevoegen aan download
environment:
DOWNLOADDIR=/usr/share/nginx/html/download/python/lmwsip
commands: commands:
- mkdir -p /usr/share/nginx/html/download/python/lmwsip - mkdir -p "${DOWNLOADDIR}"
- cd dist - cd dist
- for f in *;do if [ -f "${f}" ] ; then echo version error;exit 1;else cp "${f}" /usr/share/nginx/html/download/python/lmwsip;fi;done - for f in *;do if [ -f "${DOWNLOADDIR}/${f}" ] ; then echo version error;exit 1;else cp "${f}" "${DOWNLOADDIR}";fi;done
when: when:
branch: branch:
- master - master