forked from platypush/platypush
Parametrized the Debian build steps.
This commit is contained in:
parent
1f2e5b1e7a
commit
6af02804d5
1 changed files with 8 additions and 5 deletions
13
.drone.yml
13
.drone.yml
|
@ -245,11 +245,13 @@ steps:
|
||||||
fi
|
fi
|
||||||
|
|
||||||
- name: update-debian-stable-packages
|
- name: update-debian-stable-packages
|
||||||
image: debian:bookworm
|
image: debian:stable
|
||||||
environment:
|
environment:
|
||||||
|
DEB_VERSION: stable
|
||||||
WORKDIR: /tmp/workdir
|
WORKDIR: /tmp/workdir
|
||||||
STABLE_PKG_NAME: platypush
|
STABLE_PKG_NAME: platypush
|
||||||
GIT_PKG_NAME: platypush-git
|
GIT_PKG_NAME: platypush-git
|
||||||
|
S3_URL: s3://platypush-pkg/apt/dists
|
||||||
AWS_ENDPOINT_URL: https://s3.nl-ams.scw.cloud
|
AWS_ENDPOINT_URL: https://s3.nl-ams.scw.cloud
|
||||||
AWS_DEFAULT_REGION: nl-ams
|
AWS_DEFAULT_REGION: nl-ams
|
||||||
AWS_ACCESS_KEY_ID:
|
AWS_ACCESS_KEY_ID:
|
||||||
|
@ -309,14 +311,16 @@ steps:
|
||||||
Description: Universal command executor and automation hub.
|
Description: Universal command executor and automation hub.
|
||||||
EOF
|
EOF
|
||||||
- dpkg --build "$GIT_BUILD_DIR"
|
- dpkg --build "$GIT_BUILD_DIR"
|
||||||
- aws s3 cp "$GIT_DEB" s3://platypush-pkg/apt/dists/bookworm/main/all/
|
- aws s3 cp "$GIT_DEB" "$S3_URL/$DEB_VERSION/main/all/"
|
||||||
|
|
||||||
- name: update-debian-oldstable-packages
|
- name: update-debian-oldstable-packages
|
||||||
image: debian:bullseye
|
image: debian:oldstable
|
||||||
environment:
|
environment:
|
||||||
|
DEB_VERSION: oldstable
|
||||||
WORKDIR: /tmp/workdir
|
WORKDIR: /tmp/workdir
|
||||||
STABLE_PKG_NAME: platypush
|
STABLE_PKG_NAME: platypush
|
||||||
GIT_PKG_NAME: platypush-git
|
GIT_PKG_NAME: platypush-git
|
||||||
|
S3_URL: s3://platypush-pkg/apt/dists
|
||||||
AWS_ENDPOINT_URL: https://s3.nl-ams.scw.cloud
|
AWS_ENDPOINT_URL: https://s3.nl-ams.scw.cloud
|
||||||
AWS_DEFAULT_REGION: nl-ams
|
AWS_DEFAULT_REGION: nl-ams
|
||||||
AWS_ACCESS_KEY_ID:
|
AWS_ACCESS_KEY_ID:
|
||||||
|
@ -364,7 +368,6 @@ steps:
|
||||||
mv "$dir" "$base/dist-packages"
|
mv "$dir" "$base/dist-packages"
|
||||||
done
|
done
|
||||||
|
|
||||||
|
|
||||||
- mkdir -p "$GIT_BUILD_DIR/DEBIAN"
|
- mkdir -p "$GIT_BUILD_DIR/DEBIAN"
|
||||||
- |
|
- |
|
||||||
cat <<EOF > "$GIT_BUILD_DIR/DEBIAN/control"
|
cat <<EOF > "$GIT_BUILD_DIR/DEBIAN/control"
|
||||||
|
@ -377,7 +380,7 @@ steps:
|
||||||
Description: Universal command executor and automation hub.
|
Description: Universal command executor and automation hub.
|
||||||
EOF
|
EOF
|
||||||
- dpkg --build "$GIT_BUILD_DIR"
|
- dpkg --build "$GIT_BUILD_DIR"
|
||||||
- aws s3 cp "$GIT_DEB" s3://platypush-pkg/apt/dists/bookworm/main/all/
|
- aws s3 cp "$GIT_DEB" "$S3_URL/$DEB_VERSION/main/all/"
|
||||||
|
|
||||||
- name: update-pip-package
|
- name: update-pip-package
|
||||||
image: python:3.11-alpine
|
image: python:3.11-alpine
|
||||||
|
|
Loading…
Reference in a new issue