Upload packages to PackageCloud during release action (#860)

Signed-off-by: Christian Mesh <christianmesh1@gmail.com>
This commit is contained in:
Christian Mesh 2023-11-13 14:22:32 -05:00 committed by GitHub
parent 49f631d88b
commit 1f5ebf4886
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23
2 changed files with 38 additions and 0 deletions

View File

@ -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 }}

View File

@ -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: