mirror of
https://github.com/opentofu/get.opentofu.org.git
synced 2026-01-11 19:46:32 +00:00
The website hosting the OpenTofu Installer script and installation resources
|
|
||
|---|---|---|
| .github/workflows | ||
| functions | ||
| releases-generator | ||
| static | ||
| tests | ||
| .gitignore | ||
| build.sh | ||
| go.mod | ||
| LICENSE | ||
| package-lock.json | ||
| package.json | ||
| README.md | ||
OpenTofu distribution site
This repository contains the source code for the get.opentofu.org distribution site. It is deployed on Cloudflare
Pages. The installation scripts are located in static/install-opentofu.sh (POSIX) and static/install-opentofu.ps1 (Powershell). The Cloudflare function managing the MIME type assignment is located in
functions/index.ts.
Testing the script
Linux
You can test the installation script manually, or you can use docker compose to run the automated
tests:
cd tests/linux
./test-all.sh
Windows
cd tests\windows
& '.\test-all.ps1'
Testing the site
You can test the site locally using wrangler if you have NodeJS/NPM installed:
npm i
cd static
npx wrangler pages dev .