- .NET 8
The file .env.example
(or .env.ps1.example
if you use PowerShell) contains the list of
necessary variables for the whole build.
ENABLE_EXCEPTION_PAGE
is used by Giraffe when runningDamo.Io.Server
locally.
make check
make damo.io.server.container
make damo.io.blog.container
- Create Artifact Registry in cloud console, named
docker-images
- Push image to registry, using Powershell:
$env:REGION="us-central1" $env:PROJECT_ID="example-project-id-1000" $env:IMAGE_NAME="damo.io.server" gcloud auth configure-docker "${env:REGION}-docker.pkg.dev" docker tag ${env:IMAGE_NAME} "${env:REGION}-docker.pkg.dev/${env:PROJECT_ID}/docker-images/${env:IMAGE_NAME}:latest" docker push "${env:REGION}-docker.pkg.dev/${env:PROJECT_ID}/docker-images/${env:IMAGE_NAME}:latest"
- In Cloud console > Cloud Run > Create Service
- Select the image we just pushed to our Artifact Registry
- Min: 0, Max: 1
- Ingress: All
- Authentication: Allow Unauthenticated
- "Create"
- Create service account
github-actions-account
- Role
Artifact Registry Writer
- Role
Cloud Run Developer
- Role
Service Account User
- Role
- Create and download key, set as GitHub secret as a single line string
- Setup workflow as seen in
.github/workflows/build.yml