From f4f57a0e5355c5b320f4c5a9f4827b3250e25a4d Mon Sep 17 00:00:00 2001 From: Anders Harrisson <anders.harrisson@ess.eu> Date: Wed, 28 Aug 2024 14:44:26 +0200 Subject: [PATCH] Add GitLab-CI pipeline configuration JIRA INFRA-10424 --- .gitlab-ci.yml | 33 +++++++++++++++++++++++++++++++++ 1 file changed, 33 insertions(+) create mode 100644 .gitlab-ci.yml diff --git a/.gitlab-ci.yml b/.gitlab-ci.yml new file mode 100644 index 0000000..5c45407 --- /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 -- GitLab