forked from platypush/platypush
Reviewed-on: platypush/platypush#402 Closes: #368
This commit is contained in:
commit
16f7b7e12a
5 changed files with 77 additions and 46 deletions
29
.drone.yml
29
.drone.yml
|
@ -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
|
||||||
|
|
|
@ -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"
|
||||||
|
|
|
@ -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
|
||||||
|
|
||||||
|
|
|
@ -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"
|
||||||
|
|
64
README.md
64
README.md
|
@ -795,51 +795,49 @@ 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`
|
# wget -q -O \
|
||||||
|
/etc/apt/trusted.gpg.d/platypush.asc \
|
||||||
|
https://apt.platypush.tech/pubkey.txt
|
||||||
|
```
|
||||||
|
|
||||||
Ubuntu supported [to be added
|
2. Add the Platypush repository to your APT sources:
|
||||||
soon](https://git.platypush.tech/platypush/platypush/issues/368).
|
|
||||||
|
|
||||||
- Add the Platypush APT key to your trusted keyring:
|
```
|
||||||
|
# wget -q -O \
|
||||||
|
/etc/apt/sources.list.d/platypush.list \
|
||||||
|
https://apt.platypush.tech/lists/platypush-<deb_version>-<branch>.list
|
||||||
|
```
|
||||||
|
|
||||||
```
|
Where:
|
||||||
# wget -q -O \
|
|
||||||
/etc/apt/trusted.gpg.d/platypush.asc \
|
|
||||||
https://apt.platypush.tech/pubkey.txt
|
|
||||||
```
|
|
||||||
|
|
||||||
- Add the Platypush repository to your APT sources:
|
- `deb_version` can be either:
|
||||||
|
|
||||||
```
|
- `stable`: current Debian stable
|
||||||
# wget -q -O \
|
- `oldstable`: previous Debian stable
|
||||||
/etc/apt/sources.list.d/platypush.list \
|
- `ubuntu`: latest Ubuntu release
|
||||||
https://apt.platypush.tech/lists/platypush-<deb_version>-<branch>.list
|
|
||||||
```
|
|
||||||
|
|
||||||
Where:
|
- `branch` can be either:
|
||||||
|
|
||||||
- `deb_version` can be either *stable* (for the current Debian stable version) or
|
- `main`: latest stable release
|
||||||
*oldstable* (for the previous Debian stable version)
|
- `dev`: a package always in sync with the latest git version
|
||||||
- `branch` can be either *main* (for the latest releases) or *dev* (for a package
|
|
||||||
that is 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:
|
||||||
|
|
||||||
```
|
```
|
||||||
# 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
|
||||||
```
|
```
|
||||||
|
|
||||||
- Update your repos and install Platypush:
|
3. Update your repos and install Platypush:
|
||||||
|
|
||||||
```
|
```
|
||||||
# apt update
|
# apt update
|
||||||
# apt install platypush
|
# apt install platypush
|
||||||
```
|
```
|
||||||
|
|
||||||
#### Fedora
|
#### Fedora
|
||||||
|
|
||||||
|
|
Loading…
Reference in a new issue