[#368] Added Ubuntu packages

This commit is contained in:
Fabio Manganiello 2024-05-26 22:38:22 +02:00
parent 5b3c0ad1cf
commit 22222fab65
Signed by: blacklight
GPG key ID: D90FBA7F76362774
5 changed files with 77 additions and 46 deletions

View file

@ -194,6 +194,34 @@ steps:
commands: commands:
- . .drone/update-deb-packages.sh - . .drone/update-deb-packages.sh
###
### Update the Ubuntu (latest) packages
###
- name: update-ubuntu-packages
image: ubuntu:latest
volumes:
- name: repos
path: /repos
environment:
DEB_VERSION: ubuntu
WORKDIR: /tmp/workdir
APT_ROOT: /repos/apt
PKG_NAME: platypush
when:
branch:
- master
event:
- push
depends_on:
- update-components-cache
commands:
- . .drone/update-deb-packages.sh
### ###
### Updates the APT repository after new packages have been pushed ### Updates the APT repository after new packages have been pushed
### ###
@ -221,6 +249,7 @@ steps:
depends_on: depends_on:
- update-debian-stable-packages - update-debian-stable-packages
- update-debian-oldstable-packages - update-debian-oldstable-packages
- update-ubuntu-packages
commands: commands:
- . .drone/update-apt-repo.sh - . .drone/update-apt-repo.sh

View file

@ -1,6 +1,5 @@
#!/bin/sh #!/bin/sh
[ -f .skipci ] && exit 0 [ -f .skipci ] && exit 0
echo "-- Installing dependencies" echo "-- Installing dependencies"
@ -105,39 +104,43 @@ Steps:
1. Add this repository's PGP key to your apt keyring 1. Add this repository's PGP key to your apt keyring
==================================================== ====================================================
$ sudo wget -q -O \\\ # wget -q -O \\\
/etc/apt/trusted.gpg.d/platypush.asc \\\ /etc/apt/trusted.gpg.d/platypush.asc \\\
https://apt.platypush.tech/pubkey.txt https://apt.platypush.tech/pubkey.txt
2. Add the repository to your sources 2. Add the repository to your sources
===================================== =====================================
$ sudo wget -q -O \\\ # wget -q -O \\\
/etc/apt/sources.list.d/platypush.list \\\ /etc/apt/sources.list.d/platypush.list \\\
https://apt.platypush.tech/lists/platypush-<deb_version>-<branch>.list https://apt.platypush.tech/lists/platypush-<deb_version>-<branch>.list
Where: Where:
- deb_version can be either *stable* (for the current Debian stable version) or - deb_version can be:
*oldstable* (for the previous Debian stable version) - *stable* - current Debian stable version
- branch can be either *main* (for the latest releases) or *dev* (for a package - *oldstable* - previous Debian stable version
that is always in sync with the git version) - *ubuntu* - latest Ubuntu version
- branch can be either:
- *main* - latest stable release
- *dev* a package always in sync with the git version
For example, to install the latest stable tags on Debian stable: For example, to install the latest stable tags on Debian stable:
$ sudo wget -q -O \\\ # wget -q -O \\\
/etc/apt/sources.list.d/platypush.list \\\ /etc/apt/sources.list.d/platypush.list \\\
https://apt.platypush.tech/lists/platypush-stable-main.list https://apt.platypush.tech/lists/platypush-stable-main.list
3. Update your repos 3. Update your repos
==================== ====================
$ sudo apt update # apt update
4. Install Platypush 4. Install Platypush
==================== ====================
$ sudo apt install platypush # apt install platypush
EOF EOF
echo "-- Importing and refreshing PGP key" echo "-- Importing and refreshing PGP key"

View file

@ -9,6 +9,7 @@ cp -r "$PWD" "$SRCDIR"
cd "$SRCDIR" cd "$SRCDIR"
echo "-- Installing dependencies" echo "-- Installing dependencies"
export DEBIAN_FRONTEND=noninteractive
apt update apt update
apt install -y curl dpkg-dev gpg git python3 python3-pip python3-setuptools apt install -y curl dpkg-dev gpg git python3 python3-pip python3-setuptools

View file

@ -235,16 +235,16 @@ Steps:
1. Add the repository to your sources 1. Add the repository to your sources
===================================== =====================================
$ sudo yum config-manager --add-repo https://rpm.platypush.tech/platypush.repo # yum config-manager --add-repo https://rpm.platypush.tech/platypush.repo
2. Install Platypush 2. Install Platypush
==================== ====================
$ sudo yum install platypush # yum install platypush
Or, if you want to install a version always up-to-date with the git repo: Or, if you want to install a version always up-to-date with the git repo:
$ sudo yum install platypush-git # yum install platypush-git
EOF EOF
cat <<EOF > "$TMP_RPM_ROOT/pubkey.txt" cat <<EOF > "$TMP_RPM_ROOT/pubkey.txt"

View file

@ -795,15 +795,7 @@ or tags.
#### Debian/Ubuntu #### Debian/Ubuntu
Currently the following releases are supported: 1. Add the Platypush APT key to your trusted keyring:
1. The current Debian `stable`
2. Debian `oldstable`
Ubuntu supported [to be added
soon](https://git.platypush.tech/platypush/platypush/issues/368).
- Add the Platypush APT key to your trusted keyring:
``` ```
# wget -q -O \ # wget -q -O \
@ -811,7 +803,7 @@ soon](https://git.platypush.tech/platypush/platypush/issues/368).
https://apt.platypush.tech/pubkey.txt https://apt.platypush.tech/pubkey.txt
``` ```
- Add the Platypush repository to your APT sources: 2. Add the Platypush repository to your APT sources:
``` ```
# wget -q -O \ # wget -q -O \
@ -821,10 +813,16 @@ soon](https://git.platypush.tech/platypush/platypush/issues/368).
Where: Where:
- `deb_version` can be either *stable* (for the current Debian stable version) or - `deb_version` can be either:
*oldstable* (for the previous Debian stable version)
- `branch` can be either *main* (for the latest releases) or *dev* (for a package - `stable`: current Debian stable
that is always in sync with the git version) - `oldstable`: previous Debian stable
- `ubuntu`: latest Ubuntu release
- `branch` can be either:
- `main`: latest stable release
- `dev`: a package always in sync with the latest git version
For example, to install the latest stable tags on Debian stable: For example, to install the latest stable tags on Debian stable:
@ -834,7 +832,7 @@ For example, to install the latest stable tags on Debian stable:
https://apt.platypush.tech/lists/platypush-stable-main.list https://apt.platypush.tech/lists/platypush-stable-main.list
``` ```
- Update your repos and install Platypush: 3. Update your repos and install Platypush:
``` ```
# apt update # apt update