From 1f111d2afb475e846ecc0328940e092b13576eef Mon Sep 17 00:00:00 2001 From: Renich Bon Ciric Date: Sun, 20 Apr 2025 02:14:46 -0600 Subject: [PATCH] .deb and .rpm installation commands fixed (#5087) MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit Co-authored-by: Robert Kaussow Co-authored-by: Rénich Bon Ćirić --- .../30-administration/05-installation/30-packages.md | 12 +++++++----- .../30-administration/05-installation/30-packages.md | 12 +++++++----- 2 files changed, 14 insertions(+), 10 deletions(-) diff --git a/docs/docs/30-administration/05-installation/30-packages.md b/docs/docs/30-administration/05-installation/30-packages.md index e54e2b093..7451faaa6 100644 --- a/docs/docs/30-administration/05-installation/30-packages.md +++ b/docs/docs/30-administration/05-installation/30-packages.md @@ -8,12 +8,14 @@ The pre-built packages are available on the [GitHub releases](https://github.com/woodpecker-ci/woodpecker/releases/latest) page. The packages can be installed using the package manager of your distribution. ```Shell -# Debian/Ubuntu -curl -L https://github.com/woodpecker-ci/woodpecker/releases/download/${RELEASE_VERSION}/woodpecker_${RELEASE_VERSION}_amd64.deb -o woodpecker-server.deb -sudo apt --fix-broken install ./woodpecker-server.deb +RELEASE_VERSION=$(curl -s https://api.github.com/repos/woodpecker-ci/woodpecker/releases/latest | grep -Po '"tag_name":\s"v\K[^"]+') -# CentOS/RHEL -sudo dnf install https://github.com/woodpecker-ci/woodpecker/releases/download/${RELEASE_VERSION}/woodpecker_${RELEASE_VERSION}_amd64.rpm +# Debian/Ubuntu (x86_64) +curl -fLOOO "https://github.com/woodpecker-ci/woodpecker/releases/download/v${RELEASE_VERSION}/woodpecker-{server,agent,cli}_${RELEASE_VERSION}_amd64.deb" +sudo apt --fix-broken install ./woodpecker-{server,agent,cli}_${RELEASE_VERSION}_amd64.deb + +# CentOS/RHEL (x86_64) +sudo dnf install https://github.com/woodpecker-ci/woodpecker/releases/download/v${RELEASE_VERSION}/woodpecker-{server,agent,cli}-${RELEASE_VERSION}.x86_64.rpm ``` The package installation will create a systemd service file for the Woodpecker server and agent along with an example environment file. To configure the server, copy the example environment file `/etc/woodpecker/woodpecker-server.env.example` to `/etc/woodpecker/woodpecker-server.env` and adjust the values. diff --git a/docs/versioned_docs/version-3.5/30-administration/05-installation/30-packages.md b/docs/versioned_docs/version-3.5/30-administration/05-installation/30-packages.md index e54e2b093..7451faaa6 100644 --- a/docs/versioned_docs/version-3.5/30-administration/05-installation/30-packages.md +++ b/docs/versioned_docs/version-3.5/30-administration/05-installation/30-packages.md @@ -8,12 +8,14 @@ The pre-built packages are available on the [GitHub releases](https://github.com/woodpecker-ci/woodpecker/releases/latest) page. The packages can be installed using the package manager of your distribution. ```Shell -# Debian/Ubuntu -curl -L https://github.com/woodpecker-ci/woodpecker/releases/download/${RELEASE_VERSION}/woodpecker_${RELEASE_VERSION}_amd64.deb -o woodpecker-server.deb -sudo apt --fix-broken install ./woodpecker-server.deb +RELEASE_VERSION=$(curl -s https://api.github.com/repos/woodpecker-ci/woodpecker/releases/latest | grep -Po '"tag_name":\s"v\K[^"]+') -# CentOS/RHEL -sudo dnf install https://github.com/woodpecker-ci/woodpecker/releases/download/${RELEASE_VERSION}/woodpecker_${RELEASE_VERSION}_amd64.rpm +# Debian/Ubuntu (x86_64) +curl -fLOOO "https://github.com/woodpecker-ci/woodpecker/releases/download/v${RELEASE_VERSION}/woodpecker-{server,agent,cli}_${RELEASE_VERSION}_amd64.deb" +sudo apt --fix-broken install ./woodpecker-{server,agent,cli}_${RELEASE_VERSION}_amd64.deb + +# CentOS/RHEL (x86_64) +sudo dnf install https://github.com/woodpecker-ci/woodpecker/releases/download/v${RELEASE_VERSION}/woodpecker-{server,agent,cli}-${RELEASE_VERSION}.x86_64.rpm ``` The package installation will create a systemd service file for the Woodpecker server and agent along with an example environment file. To configure the server, copy the example environment file `/etc/woodpecker/woodpecker-server.env.example` to `/etc/woodpecker/woodpecker-server.env` and adjust the values.