From c65d808434507ba8f7ffc02e7f438bd8ecd4fb2a Mon Sep 17 00:00:00 2001 From: Pablo Date: Mon, 17 Oct 2022 16:46:29 +0200 Subject: [PATCH] add custom pkg --- .github/workflows/release.yml | 3 +++ docker-compose.yml | 1 + iso/scripts/download_core.sh | 6 ++++++ 3 files changed, 10 insertions(+) diff --git a/.github/workflows/release.yml b/.github/workflows/release.yml index 94d9622..2d4447e 100644 --- a/.github/workflows/release.yml +++ b/.github/workflows/release.yml @@ -26,6 +26,9 @@ on: vpn: description: "Version of the vpn. Only numbers" required: true + additional: + description: "Additonal github url package to be added to the release" + required: false env: BIND_VERSION: ${{ github.event.inputs.bind }} diff --git a/docker-compose.yml b/docker-compose.yml index 7eddc98..081982d 100644 --- a/docker-compose.yml +++ b/docker-compose.yml @@ -8,6 +8,7 @@ services: - BUILD=false # In case you want to re-generate a all the images, not recommended - CLEAN=true # it remove the images directory - UNATTENDED=false # UNATTENDED version + - ADDITIONAL_PKGS= # String comma separated volumes: - ./images:/images - "/var/run/docker.sock:/var/run/docker.sock" diff --git a/iso/scripts/download_core.sh b/iso/scripts/download_core.sh index 115bd80..aa6df9b 100755 --- a/iso/scripts/download_core.sh +++ b/iso/scripts/download_core.sh @@ -16,6 +16,12 @@ WGET="wget" components=(BIND IPFS WIREGUARD DAPPMANAGER WIFI HTTPS) +# Check if the env EXTRA_PKGS is not empty +if [ -n "${EXTRA_PKGS}" ]; then + # Split the env EXTRA_PKGS by comma + IFS=',' read -ra EXTRA_PKGS <<<"${EXTRA_PKGS}" +fi + # The indirect variable expansion used in ${!ver##*:} allows us to use versions like 'dev:development' # If such variable with 'dev:'' suffix is used, then the component is built from specified branch or commit. for comp in "${components[@]}"; do