Commit 93d5d3fe authored by Fabien Amarger's avatar Fabien Amarger
Browse files

chore(debian): Remove all debian package related jobs

parent 4e1ec27df1da
Pipeline #71003 passed with stage
in 22 seconds
......@@ -13,8 +13,7 @@ include:
file: # the stages are:
- "templates/no-duplicated-ci-pipelines.yml" # use workflow to avoid duplicated pipelines
- "templates/build-docker-image.yml"
- "templates/build-debian-package.yml" # will build a .deb and upload it to heptapod
- "templates/create-release-on-heptapod-including-debian-package.yml"
- "templates/create-release-on-heptapod.yml"
- "templates/upload-to-pypi.yml"
```
......@@ -23,11 +22,7 @@ Depending on your templates you will need certains stages **in a specific order*
```yaml
stages:
# put your testing/linting stages here before
# for build-debian-package.yml
- build-debian-package
- upload-deb-to-heptapod
# for build-docker-image.yml
# for release-on-heptapod.yml
# for release-on-heptapod.yml and build-docker-image.yml
- release
# for upload-to-pypi.yml
- publish
......@@ -41,15 +36,12 @@ include:
ref: "branch/default"
file: # the stages are:
- "templates/no-duplicated-ci-pipelines.yml" # use workflow to avoid duplicated pipelines
- "templates/build-debian-package.yml" # will build a .deb and upload it to heptapod
- "templates/create-release-on-heptapod-including-debian-package.yml"
- "templates/create-release-on-heptapod.yml"
- "templates/upload-to-pypi.yml"
stages:
- lint
- tests
- build-debian-package
- upload-deb-to-heptapod
- release
- publish
```
......@@ -74,9 +66,7 @@ and some examples [here](https://docs.gitlab.com/ee/ci/yaml/README.html#include)
| [lint/yamllint.yml](templates/lint/yamllint.yml) | lint | run tox -e yamllint |
| [tests/py27.yml](templates/tests/py27.yml) | tests | run tox -e py27 |
| [tests/py3.yml](templates/tests/py3.yml) | tests | run tox -e py3 |
| [build-debian-package.yml](templates/build-debian-package.yml) | build-debian-package, upload-deb-to-heptapod | build and upload debian packages to heptapod |
| [build-docker-image.yml](templates/build-docker-image.yml) | release | build two docker images and push them to heptapod registry (the "latest" is added when MR is merged) |
| [create-release-on-heptapod.yml](templates/create-release-on-heptapod.yml) | release | create a release on heptapod on new tags |
| [create-release-on-heptapod-including-debian-package.yml](templates/create-release-on-heptapod-including-debian-package.yml) | release | create a release on heptapod on new tags and link the debian package to it |
| [upload-to-pypi.yml](templates/upload-to-pypi.yml) | publish | upload the package to pipy on new tag using tox -e pypi-publish |
| [upload-python-package-to-heptapod.yml](templates/upload-python-package-to-heptapod.yml) | publish | upload the package to heptapod registry on new tag |
---
variables:
PACKAGE_REGISTRY_URL: "${CI_API_V4_URL}/projects/${CI_PROJECT_ID}/packages/generic/${CI_PROJECT_NAME}"
build-debian:
stage: build-debian-package
image: logilab/infra/dockerfiles/buildpackage
rules:
- if: '$CI_MERGE_REQUEST_ID'
when: never
- if: '$CI_COMMIT_TAG'
when: on_success
- when: manual
script:
- buildpackage -d `pwd`
- cp -r /repo .
artifacts:
paths:
- repo
upload-deb-to-heptapod:
stage: upload-deb-to-heptapod
image: curlimages/curl:latest
# May be failling if the deb name is not ${CI_PROJECT_NAME}_${CI_COMMIT_TAG}-1_all.deb
allow_failure: true
rules:
- if: '$CI_MERGE_REQUEST_ID'
when: never
- if: '$CI_COMMIT_TAG'
when: on_success
script:
- |
curl --header "JOB-TOKEN: ${CI_JOB_TOKEN}"\
--upload-file "repo/${CI_PROJECT_NAME}_${CI_COMMIT_TAG}-1_all.deb"\
"${PACKAGE_REGISTRY_URL}/${CI_COMMIT_TAG}/${CI_PROJECT_NAME}_${CI_COMMIT_TAG}-1_all.deb"
---
include: 'templates/create-release-on-heptapod.yml'
create-release-on-heptapod:
script:
- |
release-cli create --name "Release $CI_COMMIT_TAG"
--tag-name $CI_COMMIT_TAG\
--assets-link "{\"name\":\"${CI_PROJECT_NAME}_${CI_COMMIT_TAG}-1_all.deb\",\"url\":\"${PACKAGE_REGISTRY_URL}/${CI_COMMIT_TAG}/${CI_PROJECT_NAME}_${CI_COMMIT_TAG}-1_all.deb\", \"link_type\": \"package\"}"
Markdown is supported
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment