Add deploy tooling, docs, and Aspire config
This commit is contained in:
34
deploy/README.md
Normal file
34
deploy/README.md
Normal file
@@ -0,0 +1,34 @@
|
||||
## Build and Push Images
|
||||
|
||||
1. Copy `.env.example` to `.env` and fill in production values.
|
||||
2. Run the Aspire-native push pipeline:
|
||||
|
||||
```powershell
|
||||
.\deploy\push-images.ps1
|
||||
```
|
||||
|
||||
Or from a POSIX shell:
|
||||
|
||||
```sh
|
||||
sh ./deploy/push-images.sh
|
||||
```
|
||||
|
||||
The shell script expects the Aspire CLI to be installed in that shell. In WSL, install it with the official Aspire installer:
|
||||
|
||||
```sh
|
||||
curl -sSL https://aspire.dev/install.sh | bash
|
||||
```
|
||||
|
||||
Or as a .NET tool:
|
||||
|
||||
```sh
|
||||
dotnet tool install -g Aspire.Cli
|
||||
```
|
||||
|
||||
The script loads `deploy/.env` when it exists, authenticates to `git.recroomarchive.org` using `REGISTRY_USERNAME` and `REGISTRY_TOKEN`, then runs `aspire do push`.
|
||||
|
||||
The included `docker-compose.yml` consumes the pushed images:
|
||||
|
||||
```powershell
|
||||
docker compose --env-file .env up -d
|
||||
```
|
||||
Reference in New Issue
Block a user