Skip to content
Snippets Groups Projects
Commit 915e501a337a authored by Vincent Hatakeyama's avatar Vincent Hatakeyama
Browse files

:rocket: Use CI template for the packaging

parent 2f7a72fea481
No related branches found
No related tags found
1 merge request!172🚀 Use CI template for the packaging
include:
- file: python3-lint-needs.gitlab-ci.yaml
project: xcg/ci-templates
- file: python-package.gitlab-ci.yaml
project: xcg/ci-templates
- file: docker-build.gitlab-ci.yaml
project: xcg/ci-templates
- file: deploy-doc.gitlab-ci.yaml
......@@ -70,17 +72,6 @@
variables:
PIP_CACHE_DIR: $CI_PROJECT_DIR/.cache/pip
create_package:
stage: build
image: quay.orus.io/xcg/twine
needs: []
script:
- pyproject-build
artifacts:
paths:
- dist
expire_in: 1h
import_jsonrpc_odoo11_test-focal:
stage: test
needs: []
......@@ -226,23 +217,6 @@
- TAG_COMMIT_SHA="no" DOCKER_BASE_IMAGE_NAME="$TEMP_IMAGE"
DOCKER_IMAGE="xcgd/odoo_scripts" tag-img
publish_package:
stage: deploy
image: quay.orus.io/xcg/twine
needs:
- job: create_package
artifacts: true
variables:
GIT_STRATEGY: none
script:
- TWINE_PASSWORD=${CI_JOB_TOKEN} TWINE_USERNAME=gitlab-ci-token twine upload
--repository-url ${CI_API_V4_URL}/projects/${CI_PROJECT_ID}/packages/pypi dist/*
rules:
- if: $CI_COMMIT_BRANCH =~ /^topic\/.*/ || $CI_COMMIT_BRANCH =~ /^branch\/.*/
when: manual
allow_failure: true
- if: $CI_COMMIT_TAG
release_job:
stage: deploy
image: registry.gitlab.com/gitlab-org/release-cli:latest
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment