Skip to content

timofurrer/get.opentofu.org

 
 

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

5 Commits
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

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 src/install-opentofu.sh (POSIX) and src/install-opentofu.ps1 (Powershell). The Cloudflare function managing the MIME type assignment is located in src/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 src
npx wrangler pages dev .

About

The get.opentofu.org website

Resources

License

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published

Languages

  • Shell 72.8%
  • PowerShell 26.3%
  • Other 0.9%