Modify pipeline.yml and add dist build step

pull/1076/head
Dmitry Pavlov 5 years ago
parent 80353854db
commit f35d41ac4b

@ -12,4 +12,7 @@ steps:
- wait - wait
- label: 'Show' - label: 'Show'
command: ls -lah /tmp/test-results/${BUILDKITE_PIPELINE_SLUG}/${BUILDKITE_BUILD_ID} command: ls -lah /tmp/test-results/${BUILDKITE_PIPELINE_SLUG}/${BUILDKITE_BUILD_ID}
- label: 'Build dist image and publish'
command: docker build --tag diagrams-build:1.0 -f ./docker/dev/Dockerfile2 .

@ -0,0 +1,12 @@
FROM diagrams:1.0
RUN apk update && apk add --no-cache libffi-dev libressl-dev curl
RUN pip install --user poetry
WORKDIR /usr/src/diagrams
RUN /root/.local/bin/poetry build
RUN curl -v -u deployment:deployment123 --upload-file dist/diagrams-0.16.0-py3-none-any.whl https://nexus.flocktory.com/nexus/content/repositories/releases/python/diagrams-0.16.0-py3-none-any.whl
Loading…
Cancel
Save