Moved all list files generation logic within the update-apt-repo step.
continuous-integration/drone/push Build is passing Details

This commit is contained in:
Fabio Manganiello 2023-11-18 15:33:22 +01:00
parent e5ca96e004
commit c055edab8f
Signed by: blacklight
GPG Key ID: D90FBA7F76362774
1 changed files with 20 additions and 18 deletions

View File

@ -514,16 +514,6 @@ steps:
cp "$GIT_DEB" "$APT_ROOT/pool/$DEB_VERSION/main/$${PKG_NAME}_$${VERSION}-1_all.deb" cp "$GIT_DEB" "$APT_ROOT/pool/$DEB_VERSION/main/$${PKG_NAME}_$${VERSION}-1_all.deb"
fi fi
- |
cat <<EOF > "$TMP_APT_ROOT/platypush-oldstable-main.list"
deb https://apt.platypush.tech/ oldstable main
EOF
- |
cat <<EOF > "$TMP_APT_ROOT/platypush-oldstable-dev.list"
deb https://apt.platypush.tech/ oldstable dev
EOF
### ###
### Updates the APT repository after new packages have been pushed ### Updates the APT repository after new packages have been pushed
### ###
@ -626,16 +616,28 @@ steps:
add_hashes "$dist_dir" "sha256sum" "SHA256" >> "$release_file" add_hashes "$dist_dir" "sha256sum" "SHA256" >> "$release_file"
done done
- echo "-- Generating list files"
- mkdir -p "$TMP_APT_ROOT/lists"
- | - |
cat <<EOF > "$TMP_APT_ROOT/platypush-stable-main.list" cat <<EOF > "$TMP_APT_ROOT/lists/platypush-stable-main.list"
deb https://apt.platypush.tech/ stable main deb https://apt.platypush.tech/ stable main
EOF EOF
- | - |
cat <<EOF > "$TMP_APT_ROOT/platypush-stable-dev.list" cat <<EOF > "$TMP_APT_ROOT/lists/platypush-stable-dev.list"
deb https://apt.platypush.tech/ stable dev deb https://apt.platypush.tech/ stable dev
EOF EOF
- |
cat <<EOF > "$TMP_APT_ROOT/lists/platypush-oldstable-main.list"
deb https://apt.platypush.tech/ oldstable main
EOF
- |
cat <<EOF > "$TMP_APT_ROOT/lists/platypush-oldstable-dev.list"
deb https://apt.platypush.tech/ oldstable dev
EOF
- echo "-- Updating index file" - echo "-- Updating index file"
- | - |
cat <<EOF > "$TMP_APT_ROOT/index.txt" cat <<EOF > "$TMP_APT_ROOT/index.txt"
@ -653,15 +655,15 @@ 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 \ $ sudo 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 \ $ sudo 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:
@ -673,8 +675,8 @@ steps:
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 \ $ sudo 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