diff --git a/.github/workflows/release.yml b/.github/workflows/release.yml index 6a6ee520bf..d7a457ff6f 100644 --- a/.github/workflows/release.yml +++ b/.github/workflows/release.yml @@ -76,3 +76,19 @@ jobs: env: GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }} SNAPCRAFT_STORE_CREDENTIALS: ${{ secrets.SNAPCRAFT_STORE_TOKEN }} + - name: Upload Debian packages to PackageCloud + uses: computology/packagecloud-github-action@v0.6 + with: + PACKAGE-NAME: dist/*.deb + PACKAGECLOUD-USERNAME: opentofu + PACKAGECLOUD-REPONAME: tofu + PACKAGECLOUD-DISTRO: any/any + PACKAGECLOUD-TOKEN: ${{ secrets.PACKAGECLOUD_TOKEN }} + - name: Upload RPM packages to PackageCloud + uses: computology/packagecloud-github-action@v0.6 + with: + PACKAGE-NAME: dist/*.rpm + PACKAGECLOUD-USERNAME: opentofu + PACKAGECLOUD-REPONAME: tofu + PACKAGECLOUD-DISTRO: rpm_any/rpm_any + PACKAGECLOUD-TOKEN: ${{ secrets.PACKAGECLOUD_TOKEN }} diff --git a/website/docs/intro/install.mdx b/website/docs/intro/install.mdx index 8d3d5ce058..dacf2cdb94 100644 --- a/website/docs/intro/install.mdx +++ b/website/docs/intro/install.mdx @@ -36,6 +36,28 @@ brew install opentofu ## Installing on Linux +OpenTofu is available via [PackageCloud](https://packagecloud.io/opentofu/tofu) and Snapcraft + +### Debian and derivatives: +```bash +curl -s https://packagecloud.io/install/repositories/opentofu/tofu/script.deb.sh -o /tmp/tofu-repository-setup.sh +# Inspect the downloaded script at /tmp/tofu-repository-setup.sh before running +sudo bash /tmp/tofu-repository-setup.sh +rm /tmp/tofu-repository-setup.sh + +sudo apt install tofu +``` + +### RedHat and derivatives: +```bash +curl -s https://packagecloud.io/install/repositories/opentofu/tofu/script.rpm.sh -o /tmp/tofu-repository-setup.sh +# Inspect the downloaded script at /tmp/tofu-repository-setup.sh before running +sudo bash /tmp/tofu-repository-setup.sh +rm /tmp/tofu-repository-setup.sh + +sudo yum install tofu +``` + ### Ubuntu (Snapcraft) If you're on Ubuntu and using Snapcraft you can install OpenTofu by running: