Skip to content

Commit d93f448

Browse files
Add notifications to installer CI
1 parent 9362e51 commit d93f448

File tree

3 files changed

+12
-6
lines changed

3 files changed

+12
-6
lines changed

.dappnode_profile

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -14,6 +14,7 @@ export DAPPMANAGER_VERSION="${DAPPMANAGER_VERSION:-0.2.99}"
1414
export WIFI_VERSION="${WIFI_VERSION:-0.2.9}"
1515
export WIREGUARD_VERSION="${WIREGUARD_VERSION:-0.1.3}"
1616
export HTTPS_VERSION="${HTTPS:-0.2.2}"
17+
export NOTIFICATIONS_VERSION="${NOTIFICATIONS_VERSION:-0.1.5}"
1718

1819
export DAPPNODE_DIR="/usr/src/dappnode"
1920
export DAPPNODE_CORE_DIR="${DAPPNODE_DIR}/DNCORE"

.github/workflows/release.yml

Lines changed: 7 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -26,6 +26,9 @@ on:
2626
vpn:
2727
description: "Version of the OpenVPN Package. Only numbers"
2828
required: true
29+
notifications:
30+
description: "Version of the Notifications Package. Only numbers"
31+
required: true
2932

3033
env:
3134
BIND_VERSION: ${{ github.event.inputs.bind }}
@@ -35,6 +38,7 @@ env:
3538
WIREGUARD_VERSION: ${{ github.event.inputs.wireguard }}
3639
HTTPS_VERSION: ${{ github.event.inputs.https }}
3740
VPN_VERSION: ${{ github.event.inputs.vpn }}
41+
NOTIFICATIONS_VERSION: ${{ github.event.inputs.notifications }}
3842
CORE_VERSION: ${{ github.event.inputs.core }}
3943

4044
jobs:
@@ -50,7 +54,7 @@ jobs:
5054
run: |
5155
[[ $BIND_VERSION =~ ^[0-9]+\.[0-9]+\.[0-9]+$ ]] && [[ $IPFS_VERSION =~ ^[0-9]+\.[0-9]+\.[0-9]+$ ]] && [[ $DAPPMANAGER_VERSION =~ ^[0-9]+\.[0-9]+\.[0-9]+$ ]] && \
5256
[[ $WIFI_VERSION =~ ^[0-9]+\.[0-9]+\.[0-9]+$ ]] && [[ $WIREGUARD_VERSION =~ ^[0-9]+\.[0-9]+\.[0-9]+$ ]] && [[ $HTTPS_VERSION =~ ^[0-9]+\.[0-9]+\.[0-9]+$ ]] && \
53-
[[ $VPN_VERSION =~ ^[0-9]+\.[0-9]+\.[0-9]+$ ]] && [[ $CORE_VERSION =~ ^v[0-9]+\.[0-9]+\.[0-9]+$ ]] || { echo "versions introduced in wrong format"; exit 1; }
57+
[[ $VPN_VERSION =~ ^[0-9]+\.[0-9]+\.[0-9]+$ ]] && [[ $NOTIFICATIONS_VERSION =~ ^[0-9]+\.[0-9]+\.[0-9]+$ ]] && [[ $CORE_VERSION =~ ^v[0-9]+\.[0-9]+\.[0-9]+$ ]] || { echo "versions introduced in wrong format"; exit 1; } && \
5458
5559
- name: Checkout
5660
uses: actions/checkout@v4
@@ -64,6 +68,7 @@ jobs:
6468
sed -i -e "/WIFI_VERSION/s/[0-9]*\.[0-9]*\.[0-9]*/"${WIFI_VERSION}"/" .dappnode_profile
6569
sed -i -e "/WIREGUARD_VERSION/s/[0-9]*\.[0-9]*\.[0-9]*/"${WIREGUARD_VERSION}"/" .dappnode_profile
6670
sed -i -e "/HTTPS_VERSION/s/[0-9]*\.[0-9]*\.[0-9]*/"${HTTPS_VERSION}"/" .dappnode_profile
71+
sed -i -e "/NOTIFICATIONS_VERSION/s/[0-9]*\.[0-9]*\.[0-9]*/"${NOTIFICATIONS_VERSION}"/" .dappnode_profile
6772
cat .dappnode_profile
6873
6974
- name: Build Debian attended
@@ -150,7 +155,7 @@ jobs:
150155
151156
- name: Write release content
152157
run: |
153-
echo -en "# Versions\n| Package | Version |\n|---|---|\nbind.dnp.dappnode.eth|${BIND_VERSION}|\n|ipfs.dnp.dappnode.eth|${IPFS_VERSION}|\n|vpn.dnp.dappnode.eth |${VPN_VERSION}|\n|dappmanager.dnp.dappnode.eth|${DAPPMANAGER_VERSION}|\n|wifi.dnp.dappnode.eth|${WIFI_VERSION}|\n|https.dnp.dappnode.eth|${HTTPS_VERSION}|\n|wireguard.dnp.dappnode.eth|${WIREGUARD_VERSION}|\n# Changes\nChanges implemented in release ${CORE_VERSION}\n# Debian Attended version\nInstall and customize DAppNode using the attended ISO: **DAppNode-${CORE_VERSION}-debian-bookworm-amd64.iso**\n\n## ISO SHA-256 Checksum\n\`\`\`\nshasum -a 256 DAppNode-${CORE_VERSION}-debian-bookworm-amd64.iso\n${SHASUM_DEBIAN_ATTENDED}\n\`\`\`\n# Debian Unattended version\nInstall DAppNode easily using the unattended ISO: **DAppNode-${CORE_VERSION}-debian-bookworm-amd64-unattended.iso**\nDo a reboot right after the installation\n:warning: **Warning**: This ISO will install Dappnode automatically, deleting all existing partitions on the disk\n\n## ISO SHA-256 Checksum\n\`\`\`\nshasum -a 256 DAppNode-${CORE_VERSION}-debian-bookworm-amd64-unattended.iso\n${SHASUM_DEBIAN_UNATTENDED}\n\`\`\`\nDo a reboot right after the installation\n:warning: **Warning**: This ISO will install Dappnode automatically, deleting all existing partitions on the disk\n\n## ISO SHA-256 Checksum\n\`\`\`\n\`\`\`\n# DAppNode for Raspberry Pi 4 64bit\n[Instructions](https://github.com/dappnode/DAppNode/wiki/DAppNodeARM-Installation-Guide)\n\ndefault login data:\n - **__user__**: dappnode\n - **__password__**: dappnodepi" > CHANGELOG.md
158+
echo -en "# Versions\n| Package | Version |\n|---|---|\nbind.dnp.dappnode.eth|${BIND_VERSION}|\n|ipfs.dnp.dappnode.eth|${IPFS_VERSION}|\n|vpn.dnp.dappnode.eth|${VPN_VERSION}|\n|dappmanager.dnp.dappnode.eth|${DAPPMANAGER_VERSION}|\n|wifi.dnp.dappnode.eth|${WIFI_VERSION}|\n|https.dnp.dappnode.eth|${HTTPS_VERSION}|\n|wireguard.dnp.dappnode.eth|${WIREGUARD_VERSION}|\n|notifications.dnp.dappnode.eth|${NOTIFICATIONS_VERSION}|\n# Changes\nChanges implemented in release ${CORE_VERSION}\n# Debian Attended version\nInstall and customize DAppNode using the attended ISO: **DAppNode-${CORE_VERSION}-debian-bookworm-amd64.iso**\n\n## ISO SHA-256 Checksum\n\`\`\`\nshasum -a 256 DAppNode-${CORE_VERSION}-debian-bookworm-amd64.iso\n${SHASUM_DEBIAN_ATTENDED}\n\`\`\`\n# Debian Unattended version\nInstall DAppNode easily using the unattended ISO: **DAppNode-${CORE_VERSION}-debian-bookworm-amd64-unattended.iso**\nDo a reboot right after the installation\n:warning: **Warning**: This ISO will install Dappnode automatically, deleting all existing partitions on the disk\n\n## ISO SHA-256 Checksum\n\`\`\`\nshasum -a 256 DAppNode-${CORE_VERSION}-debian-bookworm-amd64-unattended.iso\n${SHASUM_DEBIAN_UNATTENDED}\n\`\`\`\nDo a reboot right after the installation\n:warning: **Warning**: This ISO will install Dappnode automatically, deleting all existing partitions on the disk\n\n## ISO SHA-256 Checksum\n\`\`\`\n\`\`\`\n# DAppNode for Raspberry Pi 4 64bit\n[Instructions](https://github.com/dappnode/DAppNode/wiki/DAppNodeARM-Installation-Guide)\n\ndefault login data:\n - **__user__**: dappnode\n - **__password__**: dappnodepi" > CHANGELOG.md
154159
cat CHANGELOG.md
155160
env:
156161
SHASUM_DEBIAN_ATTENDED: ${{ steps.shasum-debian-attended.outputs.SHASUM_DEBIAN_ATTENDED }}

scripts/dappnode_install.sh

Lines changed: 4 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -68,15 +68,15 @@ determine_packages() {
6868
is_port_used
6969
if [ "$IS_ISO_INSTALL" == "false" ]; then
7070
if [ "$IS_PORT_USED" == "true" ]; then
71-
PKGS=(BIND IPFS VPN WIREGUARD DAPPMANAGER WIFI)
71+
PKGS=(BIND IPFS VPN WIREGUARD DAPPMANAGER WIFI NOTIFICATIONS)
7272
else
73-
PKGS=(HTTPS BIND IPFS WIREGUARD DAPPMANAGER WIFI)
73+
PKGS=(HTTPS BIND IPFS WIREGUARD DAPPMANAGER WIFI NOTIFICATIONS)
7474
fi
7575
else
7676
if [ "$IS_PORT_USED" == "true" ]; then
77-
PKGS=(BIND IPFS WIREGUARD DAPPMANAGER WIFI)
77+
PKGS=(BIND IPFS WIREGUARD DAPPMANAGER WIFI NOTIFICATIONS)
7878
else
79-
PKGS=(HTTPS BIND IPFS WIREGUARD DAPPMANAGER WIFI)
79+
PKGS=(HTTPS BIND IPFS WIREGUARD DAPPMANAGER WIFI NOTIFICATIONS)
8080
fi
8181
fi
8282
echo -e "\e[32mPackages to be installed: ${PKGS[*]}\e[0m" 2>&1 | tee -a $LOGFILE

0 commit comments

Comments
 (0)