Skip to content

Commit c0add0e

Browse files
author
Paveł Tyślacki
committed
add gitlab package building
1 parent 1e81615 commit c0add0e

File tree

1 file changed

+30
-0
lines changed

1 file changed

+30
-0
lines changed

.gitlab-ci.yml

Lines changed: 30 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,30 @@
1+
image: $ARTIFACTORY_DOCKER_REGISTRY/infrastructure/docker-libpy-test:0.10
2+
3+
stages:
4+
- build
5+
- publish
6+
7+
build-package:
8+
stage: build
9+
script:
10+
- pip3.6 install wheel
11+
- python3.6 setup.py sdist bdist_wheel
12+
artifacts:
13+
paths:
14+
- dist
15+
tags:
16+
- docker
17+
only:
18+
- branches
19+
- tags
20+
21+
publish-package:
22+
stage: publish
23+
script: twine upload --repository-url=$ARTIFACTORY_PYPI_REPOSITORY --username=$ARTIFACTORY_USERNAME --password=$ARTIFACTORY_PASSWORD dist/*
24+
dependencies:
25+
- build-package
26+
tags:
27+
- docker
28+
only:
29+
- master
30+
- tags

0 commit comments

Comments
 (0)