mirror of
https://github.com/coollabsio/coolify-docs.git
synced 2026-06-19 07:35:55 +00:00
feat(env): add environment variables for site URL and analytics domain
- Introduced .env.example file to define VITE_SITE_URL and VITE_ANALYTICS_DOMAIN. - Updated Dockerfile to accept new build arguments for site URL and analytics domain. - Modified production and staging build workflows to utilize the new environment variables. - Updated VitePress configuration to dynamically set the hostname and meta tags based on the environment variables.
This commit is contained in:
@@ -9,6 +9,7 @@ env:
|
||||
GITHUB_REGISTRY: ghcr.io
|
||||
IMAGE_NAME: coollabsio/coolify-docs
|
||||
VITE_ANALYTICS_DOMAIN: coolify.io/docs
|
||||
VITE_SITE_URL: https://coolify.io/docs/
|
||||
|
||||
jobs:
|
||||
build:
|
||||
@@ -50,6 +51,9 @@ jobs:
|
||||
context: .
|
||||
file: Dockerfile
|
||||
platforms: linux/arm64
|
||||
build-args: |
|
||||
VITE_ANALYTICS_DOMAIN=${{ env.VITE_ANALYTICS_DOMAIN }}
|
||||
VITE_SITE_URL=${{ env.VITE_SITE_URL }}
|
||||
push: true
|
||||
cache-from: type=gha,scope=${{ github.workflow }}
|
||||
cache-to: type=gha,mode=max,scope=${{ github.workflow }}
|
||||
|
||||
@@ -8,6 +8,8 @@ on:
|
||||
env:
|
||||
GITHUB_REGISTRY: ghcr.io
|
||||
IMAGE_NAME: coollabsio/coolify-docs
|
||||
VITE_ANALYTICS_DOMAIN: next.coolify.io/docs
|
||||
VITE_SITE_URL: https://next.coolify.io/docs/
|
||||
|
||||
jobs:
|
||||
build:
|
||||
@@ -50,7 +52,8 @@ jobs:
|
||||
file: Dockerfile
|
||||
platforms: linux/arm64
|
||||
build-args: |
|
||||
VITE_ANALYTICS_DOMAIN=next.coolify.io/docs
|
||||
VITE_ANALYTICS_DOMAIN=${{ env.VITE_ANALYTICS_DOMAIN }}
|
||||
VITE_SITE_URL=${{ env.VITE_SITE_URL }}
|
||||
push: true
|
||||
cache-from: type=gha,scope=${{ github.workflow }}
|
||||
cache-to: type=gha,mode=max,scope=${{ github.workflow }}
|
||||
|
||||
Reference in New Issue
Block a user