From e16cfdfb445d4ed97055a0c035baa333d7ffee64 Mon Sep 17 00:00:00 2001
From: Fabio Manganiello <fabio@manganiello.tech>
Date: Mon, 18 Sep 2023 14:34:21 +0200
Subject: [PATCH] Use vanilla Debian images to build .deb.

Instead of `python:<python_ver>-<debian_ver>` images.

The official Python Debian images install the interpreter under
/usr/local/bin/python, while standard Debian distros do under
/usr/bin/python3, leading to package incompatibility.

Also, using the vanilla Debian images makes sure that we are always
using the version of Python installed on that Debian version.
---
 .drone.yml | 8 ++++----
 1 file changed, 4 insertions(+), 4 deletions(-)

diff --git a/.drone.yml b/.drone.yml
index c34040698..3a54dc8c3 100644
--- a/.drone.yml
+++ b/.drone.yml
@@ -245,7 +245,7 @@ steps:
       fi
 
 - name: update-debian-stable-packages
-  image: python:3.11-bookworm
+  image: debian:bookworm
   environment:
     WORKDIR: /tmp/workdir
     STABLE_PKG_NAME: platypush
@@ -269,7 +269,7 @@ steps:
   commands:
     - echo "-- Installing dependencies"
     - apt update
-    - apt install -y dpkg-dev gpg
+    - apt install -y dpkg-dev gpg python3 python3-pip
     - pip install awscli
 
     - echo "--- Parsing metadata"
@@ -300,7 +300,7 @@ steps:
     - aws s3 cp "$GIT_DEB" s3://platypush-pkg/apt/bookworm/main/
 
 - name: update-debian-oldstable-packages
-  image: python:3.9-bullseye
+  image: debian:bullseye
   environment:
     WORKDIR: /tmp/workdir
     STABLE_PKG_NAME: platypush
@@ -325,7 +325,7 @@ steps:
   commands:
     - echo "-- Installing dependencies"
     - apt update
-    - apt install -y dpkg-dev gpg
+    - apt install -y dpkg-dev gpg python3 python3-pip
     - pip install awscli
 
     - echo "--- Parsing metadata"