mirror of
https://github.com/chatmail/core.git
synced 2026-05-08 01:16:31 +03:00
ci: remove Concourse CI pipelines
They were used to build legacy Python bindings, but we stopped updating them and have no Concourse CI setup.
This commit is contained in:
@@ -1,26 +0,0 @@
|
|||||||
# Concourse CI pipeline
|
|
||||||
|
|
||||||
`docs_wheels.yml` is a pipeline for [Concourse CI](https://concourse-ci.org/)
|
|
||||||
that builds C documentation, Python documentation, Python wheels for `x86_64`
|
|
||||||
and `aarch64` and Python source packages, and uploads them.
|
|
||||||
|
|
||||||
To setup the pipeline run
|
|
||||||
```
|
|
||||||
fly -t <your-target> set-pipeline -c docs_wheels.yml -p docs_wheels -l secret.yml
|
|
||||||
```
|
|
||||||
where `secret.yml` contains the following secrets:
|
|
||||||
```
|
|
||||||
c.delta.chat:
|
|
||||||
private_key: |
|
|
||||||
-----BEGIN OPENSSH PRIVATE KEY-----
|
|
||||||
...
|
|
||||||
-----END OPENSSH PRIVATE KEY-----
|
|
||||||
devpi:
|
|
||||||
login: dc
|
|
||||||
password: ...
|
|
||||||
```
|
|
||||||
|
|
||||||
Secrets can be read from the password manager:
|
|
||||||
```
|
|
||||||
fly -t b1 set-pipeline -c docs_wheels.yml -p docs_wheels -l <(pass show delta/b1.delta.chat/secret.yml)
|
|
||||||
```
|
|
||||||
@@ -1,305 +0,0 @@
|
|||||||
resources:
|
|
||||||
- name: deltachat-core-rust
|
|
||||||
type: git
|
|
||||||
icon: github
|
|
||||||
source:
|
|
||||||
branch: main
|
|
||||||
uri: https://github.com/chatmail/core.git
|
|
||||||
|
|
||||||
- name: deltachat-core-rust-release
|
|
||||||
type: git
|
|
||||||
icon: github
|
|
||||||
source:
|
|
||||||
branch: main
|
|
||||||
uri: https://github.com/chatmail/core.git
|
|
||||||
tag_filter: "v*"
|
|
||||||
|
|
||||||
jobs:
|
|
||||||
- name: python-x86_64
|
|
||||||
plan:
|
|
||||||
- get: deltachat-core-rust
|
|
||||||
- get: deltachat-core-rust-release
|
|
||||||
trigger: true
|
|
||||||
|
|
||||||
# Build manylinux image with additional dependencies
|
|
||||||
- task: build-coredeps
|
|
||||||
privileged: true
|
|
||||||
config:
|
|
||||||
inputs:
|
|
||||||
# Building the latest, not tagged coredeps
|
|
||||||
- name: deltachat-core-rust
|
|
||||||
image_resource:
|
|
||||||
source:
|
|
||||||
repository: concourse/oci-build-task
|
|
||||||
type: registry-image
|
|
||||||
outputs:
|
|
||||||
- name: coredeps-image
|
|
||||||
path: image
|
|
||||||
params:
|
|
||||||
CONTEXT: deltachat-core-rust/scripts/coredeps
|
|
||||||
UNPACK_ROOTFS: "true"
|
|
||||||
BUILD_ARG_BASEIMAGE: quay.io/pypa/manylinux2014_x86_64
|
|
||||||
platform: linux
|
|
||||||
caches:
|
|
||||||
- path: cache
|
|
||||||
run:
|
|
||||||
path: build
|
|
||||||
|
|
||||||
# Use built image to build python wheels
|
|
||||||
- task: build-wheels
|
|
||||||
image: coredeps-image
|
|
||||||
config:
|
|
||||||
inputs:
|
|
||||||
- name: deltachat-core-rust-release
|
|
||||||
path: .
|
|
||||||
outputs:
|
|
||||||
# Binary wheels
|
|
||||||
- name: py-wheels
|
|
||||||
path: ./python/.docker-tox/wheelhouse/
|
|
||||||
platform: linux
|
|
||||||
run:
|
|
||||||
path: bash
|
|
||||||
args:
|
|
||||||
- -exc
|
|
||||||
- |
|
|
||||||
scripts/run_all.sh
|
|
||||||
|
|
||||||
# Upload x86_64 wheels and source packages
|
|
||||||
- task: upload-wheels
|
|
||||||
config:
|
|
||||||
inputs:
|
|
||||||
- name: py-wheels
|
|
||||||
image_resource:
|
|
||||||
type: registry-image
|
|
||||||
source:
|
|
||||||
repository: debian
|
|
||||||
platform: linux
|
|
||||||
run:
|
|
||||||
path: sh
|
|
||||||
args:
|
|
||||||
- -ec
|
|
||||||
- |
|
|
||||||
apt-get update -y
|
|
||||||
apt-get install -y --no-install-recommends python3-pip python3-setuptools python3-venv
|
|
||||||
python3 -m venv env
|
|
||||||
env/bin/pip install --upgrade pip
|
|
||||||
env/bin/pip install devpi
|
|
||||||
env/bin/devpi use https://m.devpi.net/dc/master
|
|
||||||
env/bin/devpi login ((devpi.login)) --password ((devpi.password))
|
|
||||||
env/bin/devpi upload py-wheels/*manylinux201*
|
|
||||||
|
|
||||||
- name: python-aarch64
|
|
||||||
plan:
|
|
||||||
- get: deltachat-core-rust
|
|
||||||
- get: deltachat-core-rust-release
|
|
||||||
trigger: true
|
|
||||||
|
|
||||||
# Build manylinux image with additional dependencies
|
|
||||||
- task: build-coredeps
|
|
||||||
privileged: true
|
|
||||||
config:
|
|
||||||
inputs:
|
|
||||||
# Building the latest, not tagged coredeps
|
|
||||||
- name: deltachat-core-rust
|
|
||||||
image_resource:
|
|
||||||
source:
|
|
||||||
repository: concourse/oci-build-task
|
|
||||||
type: registry-image
|
|
||||||
outputs:
|
|
||||||
- name: coredeps-image
|
|
||||||
path: image
|
|
||||||
params:
|
|
||||||
CONTEXT: deltachat-core-rust/scripts/coredeps
|
|
||||||
UNPACK_ROOTFS: "true"
|
|
||||||
BUILD_ARG_BASEIMAGE: quay.io/pypa/manylinux2014_aarch64
|
|
||||||
platform: linux
|
|
||||||
caches:
|
|
||||||
- path: cache
|
|
||||||
run:
|
|
||||||
path: build
|
|
||||||
|
|
||||||
# Use built image to build python wheels
|
|
||||||
- task: build-wheels
|
|
||||||
image: coredeps-image
|
|
||||||
config:
|
|
||||||
inputs:
|
|
||||||
- name: deltachat-core-rust-release
|
|
||||||
path: .
|
|
||||||
outputs:
|
|
||||||
- name: py-wheels
|
|
||||||
path: ./python/.docker-tox/wheelhouse/
|
|
||||||
platform: linux
|
|
||||||
run:
|
|
||||||
path: bash
|
|
||||||
args:
|
|
||||||
- -exc
|
|
||||||
- |
|
|
||||||
scripts/run_all.sh
|
|
||||||
|
|
||||||
# Upload aarch64 wheels
|
|
||||||
- task: upload-wheels
|
|
||||||
config:
|
|
||||||
inputs:
|
|
||||||
- name: py-wheels
|
|
||||||
image_resource:
|
|
||||||
type: registry-image
|
|
||||||
source:
|
|
||||||
repository: debian
|
|
||||||
platform: linux
|
|
||||||
run:
|
|
||||||
path: sh
|
|
||||||
args:
|
|
||||||
- -ec
|
|
||||||
- |
|
|
||||||
apt-get update -y
|
|
||||||
apt-get install -y --no-install-recommends python3-pip python3-setuptools python3-venv
|
|
||||||
python3 -m venv env
|
|
||||||
env/bin/pip install --upgrade pip
|
|
||||||
env/bin/pip install devpi
|
|
||||||
env/bin/devpi use https://m.devpi.net/dc/master
|
|
||||||
env/bin/devpi login ((devpi.login)) --password ((devpi.password))
|
|
||||||
env/bin/devpi upload py-wheels/*manylinux201*
|
|
||||||
|
|
||||||
- name: python-musl-x86_64
|
|
||||||
plan:
|
|
||||||
- get: deltachat-core-rust
|
|
||||||
- get: deltachat-core-rust-release
|
|
||||||
trigger: true
|
|
||||||
|
|
||||||
# Build manylinux image with additional dependencies
|
|
||||||
- task: build-coredeps
|
|
||||||
privileged: true
|
|
||||||
config:
|
|
||||||
inputs:
|
|
||||||
# Building the latest, not tagged coredeps
|
|
||||||
- name: deltachat-core-rust
|
|
||||||
image_resource:
|
|
||||||
source:
|
|
||||||
repository: concourse/oci-build-task
|
|
||||||
type: registry-image
|
|
||||||
outputs:
|
|
||||||
- name: coredeps-image
|
|
||||||
path: image
|
|
||||||
params:
|
|
||||||
CONTEXT: deltachat-core-rust/scripts/coredeps
|
|
||||||
UNPACK_ROOTFS: "true"
|
|
||||||
BUILD_ARG_BASEIMAGE: quay.io/pypa/musllinux_1_1_x86_64
|
|
||||||
platform: linux
|
|
||||||
caches:
|
|
||||||
- path: cache
|
|
||||||
run:
|
|
||||||
path: build
|
|
||||||
|
|
||||||
# Use built image to build python wheels
|
|
||||||
- task: build-wheels
|
|
||||||
image: coredeps-image
|
|
||||||
config:
|
|
||||||
inputs:
|
|
||||||
- name: deltachat-core-rust-release
|
|
||||||
path: .
|
|
||||||
outputs:
|
|
||||||
- name: py-wheels
|
|
||||||
path: ./python/.docker-tox/wheelhouse/
|
|
||||||
platform: linux
|
|
||||||
run:
|
|
||||||
path: bash
|
|
||||||
args:
|
|
||||||
- -exc
|
|
||||||
- |
|
|
||||||
scripts/run_all.sh
|
|
||||||
|
|
||||||
# Upload musl x86_64 wheels
|
|
||||||
- task: upload-wheels
|
|
||||||
config:
|
|
||||||
inputs:
|
|
||||||
- name: py-wheels
|
|
||||||
image_resource:
|
|
||||||
type: registry-image
|
|
||||||
source:
|
|
||||||
repository: debian
|
|
||||||
platform: linux
|
|
||||||
run:
|
|
||||||
path: sh
|
|
||||||
args:
|
|
||||||
- -ec
|
|
||||||
- |
|
|
||||||
apt-get update -y
|
|
||||||
apt-get install -y --no-install-recommends python3-pip python3-setuptools python3-venv
|
|
||||||
python3 -m venv env
|
|
||||||
env/bin/pip install --upgrade pip
|
|
||||||
env/bin/pip install devpi
|
|
||||||
env/bin/devpi use https://m.devpi.net/dc/master
|
|
||||||
env/bin/devpi login ((devpi.login)) --password ((devpi.password))
|
|
||||||
env/bin/devpi upload py-wheels/*musllinux_1_1_x86_64*
|
|
||||||
|
|
||||||
- name: python-musl-aarch64
|
|
||||||
plan:
|
|
||||||
- get: deltachat-core-rust
|
|
||||||
- get: deltachat-core-rust-release
|
|
||||||
trigger: true
|
|
||||||
|
|
||||||
# Build manylinux image with additional dependencies
|
|
||||||
- task: build-coredeps
|
|
||||||
privileged: true
|
|
||||||
config:
|
|
||||||
inputs:
|
|
||||||
# Building the latest, not tagged coredeps
|
|
||||||
- name: deltachat-core-rust
|
|
||||||
image_resource:
|
|
||||||
source:
|
|
||||||
repository: concourse/oci-build-task
|
|
||||||
type: registry-image
|
|
||||||
outputs:
|
|
||||||
- name: coredeps-image
|
|
||||||
path: image
|
|
||||||
params:
|
|
||||||
CONTEXT: deltachat-core-rust/scripts/coredeps
|
|
||||||
UNPACK_ROOTFS: "true"
|
|
||||||
BUILD_ARG_BASEIMAGE: quay.io/pypa/musllinux_1_1_aarch64
|
|
||||||
platform: linux
|
|
||||||
caches:
|
|
||||||
- path: cache
|
|
||||||
run:
|
|
||||||
path: build
|
|
||||||
|
|
||||||
# Use built image to build python wheels
|
|
||||||
- task: build-wheels
|
|
||||||
image: coredeps-image
|
|
||||||
config:
|
|
||||||
inputs:
|
|
||||||
- name: deltachat-core-rust-release
|
|
||||||
path: .
|
|
||||||
outputs:
|
|
||||||
- name: py-wheels
|
|
||||||
path: ./python/.docker-tox/wheelhouse/
|
|
||||||
platform: linux
|
|
||||||
run:
|
|
||||||
path: bash
|
|
||||||
args:
|
|
||||||
- -exc
|
|
||||||
- |
|
|
||||||
scripts/run_all.sh
|
|
||||||
|
|
||||||
# Upload musl aarch64 wheels
|
|
||||||
- task: upload-wheels
|
|
||||||
config:
|
|
||||||
inputs:
|
|
||||||
- name: py-wheels
|
|
||||||
image_resource:
|
|
||||||
type: registry-image
|
|
||||||
source:
|
|
||||||
repository: debian
|
|
||||||
platform: linux
|
|
||||||
run:
|
|
||||||
path: sh
|
|
||||||
args:
|
|
||||||
- -ec
|
|
||||||
- |
|
|
||||||
apt-get update -y
|
|
||||||
apt-get install -y --no-install-recommends python3-pip python3-setuptools python3-venv
|
|
||||||
python3 -m venv env
|
|
||||||
env/bin/pip install --upgrade pip
|
|
||||||
env/bin/pip install devpi
|
|
||||||
env/bin/devpi use https://m.devpi.net/dc/master
|
|
||||||
env/bin/devpi login ((devpi.login)) --password ((devpi.password))
|
|
||||||
env/bin/devpi upload py-wheels/*musllinux_1_1_aarch64*
|
|
||||||
Reference in New Issue
Block a user