diff --git a/.gitlab-ci.yml b/.gitlab-ci.yml new file mode 100644 index 0000000000000000000000000000000000000000..5c45407d7e4ba67a600eb7446ee78d873d4d9874 --- /dev/null +++ b/.gitlab-ci.yml @@ -0,0 +1,33 @@ +--- +stages: + # - check + - build + # - test + # - analyse + - release + +default: + tags: + - docker + +build-package: + stage: build + image: python:3 + before_script: + - python -m pip install build --user + script: + - python -m build + artifacts: + expire_in: 1 day + paths: + - dist/ + +release-package: + stage: release + image: python:3 + before_script: + - python -m pip install twine --user + script: + - python -m twine upload dist/* + rules: + - if: $CI_PROJECT_PATH == "ics-infrastructure/netbox-awx-plugin" && $CI_COMMIT_TAG