From 6af02804d5a600e0a9e947d8a231f377b21ae0ce Mon Sep 17 00:00:00 2001 From: Fabio Manganiello Date: Mon, 18 Sep 2023 21:31:42 +0200 Subject: [PATCH] Parametrized the Debian build steps. --- .drone.yml | 13 ++++++++----- 1 file changed, 8 insertions(+), 5 deletions(-) diff --git a/.drone.yml b/.drone.yml index b59882a4f2..7792d941e4 100644 --- a/.drone.yml +++ b/.drone.yml @@ -245,11 +245,13 @@ steps: fi - name: update-debian-stable-packages - image: debian:bookworm + image: debian:stable environment: + DEB_VERSION: stable WORKDIR: /tmp/workdir STABLE_PKG_NAME: platypush GIT_PKG_NAME: platypush-git + S3_URL: s3://platypush-pkg/apt/dists AWS_ENDPOINT_URL: https://s3.nl-ams.scw.cloud AWS_DEFAULT_REGION: nl-ams AWS_ACCESS_KEY_ID: @@ -309,14 +311,16 @@ steps: Description: Universal command executor and automation hub. EOF - 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 - image: debian:bullseye + image: debian:oldstable environment: + DEB_VERSION: oldstable WORKDIR: /tmp/workdir STABLE_PKG_NAME: platypush GIT_PKG_NAME: platypush-git + S3_URL: s3://platypush-pkg/apt/dists AWS_ENDPOINT_URL: https://s3.nl-ams.scw.cloud AWS_DEFAULT_REGION: nl-ams AWS_ACCESS_KEY_ID: @@ -364,7 +368,6 @@ steps: mv "$dir" "$base/dist-packages" done - - mkdir -p "$GIT_BUILD_DIR/DEBIAN" - | cat < "$GIT_BUILD_DIR/DEBIAN/control" @@ -377,7 +380,7 @@ steps: Description: Universal command executor and automation hub. EOF - 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 image: python:3.11-alpine