mirror of
https://github.com/opentofu/opentofu.git
synced 2024-12-24 08:00:17 -06:00
Upload packages to PackageCloud during release action (#860)
Signed-off-by: Christian Mesh <christianmesh1@gmail.com>
This commit is contained in:
parent
49f631d88b
commit
1f5ebf4886
16
.github/workflows/release.yml
vendored
16
.github/workflows/release.yml
vendored
@ -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 }}
|
||||
|
@ -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:
|
||||
|
Loading…
Reference in New Issue
Block a user