Merge pull request '[#368] Added Ubuntu packages' (#402) from 368/ubuntu-packages into master

Reviewed-on: platypush/platypush#402

Closes: #368
This commit is contained in:
Fabio Manganiello 2024-05-26 22:41:44 +02:00
commit 16f7b7e12a
5 changed files with 77 additions and 46 deletions

View file

@ -194,6 +194,34 @@ steps:
commands:
- . .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
###
@ -221,6 +249,7 @@ steps:
depends_on:
- update-debian-stable-packages
- update-debian-oldstable-packages
- update-ubuntu-packages
commands:
- . .drone/update-apt-repo.sh

View file

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

View file

@ -9,6 +9,7 @@ cp -r "$PWD" "$SRCDIR"
cd "$SRCDIR"
echo "-- Installing dependencies"
export DEBIAN_FRONTEND=noninteractive
apt update
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
=====================================
$ 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
====================
$ sudo yum install platypush
# yum install platypush
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
cat <<EOF > "$TMP_RPM_ROOT/pubkey.txt"

View file

@ -795,51 +795,49 @@ or tags.
#### 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 \
/etc/apt/trusted.gpg.d/platypush.asc \
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 \
/etc/apt/sources.list.d/platypush.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
*oldstable* (for the previous Debian stable version)
- `branch` can be either *main* (for the latest releases) or *dev* (for a package
that is always in sync with the git version)
- `deb_version` can be either:
For example, to install the latest stable tags on Debian stable:
- `stable`: current Debian stable
- `oldstable`: previous Debian stable
- `ubuntu`: latest Ubuntu release
```
# wget -q -O \
- `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:
```
# wget -q -O \
/etc/apt/sources.list.d/platypush.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 install platypush
```
```
# apt update
# apt install platypush
```
#### Fedora