0.3.4 • Published 2 years ago
thc-deployment-tool v0.3.4
What is it about?
This deployment automation tool helps users to generate basic files that are required to deploy their app on cloud run, scan their code to check for bugs before deployment and tracing any error on the app in dev mode or prod mode. The script will generate files as follows:
- Dockerfile for frontend (vue, nuxt) and backend(expressJS, gofiber)
- Sonarcloud github actions and properties file (need to seek from Admin for keys)
- Cloud Run github actions with .env
Download and Run
- Download the latest binary package depending on your machine (Mac, Linux, Windows)
Darwin
Linux
Windows
- Extract the binary
Mac
tar -xvzf thc-deployment-tool_0.3.4_linux_amd64.tar.gz -C <your_root_project_directory>
Linux
tar -xvzf thc-deployment-tool_0.3.4_linux_amd64.tar.gz -C <your_root_project_directory>
Windows
- Right click the file and extract it the folder to your root directory of your working project.
- or use
tar -xvzf x.tar.gz -C <your_root_project_directory>
if you have git bash installed on your windows cli
Remove
README.md
from the.tar.gz
to avoid any conflicts with your projectREADME.md
.Run
./cli.exe
on your working project root directory, preferably run it on yourcli
, then start answering the prompt.The live url will be display on github actions
tab
located underdeploy
job.Hit ctrl+c or ctrl+d to if you want to abort the process.
NOTE (for maintainers):
The procedure and deployment notes are here
How To Run (in development mode)
- Install dependencies
go mod tidy
- Run main file
go run cmd/cli/main.go
- Build main file
go build cmd/cli/main.go