Pour tout problème contactez-nous par mail : support@froggit.fr | La FAQ :grey_question: | Rejoignez-nous sur le Chat :speech_balloon:

Skip to content
Snippets Groups Projects
Commit 508967de authored by Christophe Chaudier's avatar Christophe Chaudier :rocket:
Browse files

ci: use env var for URL

parent e364bfd8
No related branches found
No related tags found
1 merge request!1Resolve "ci: deploy astro"
Pipeline #9711 passed
# The Docker image that will be used to build your app # The Docker image that will be used to build your app
image: node:16.13.2-slim image: node:16.13.2-slim
variables:
ASTRO_URL: "https://${CI_PROJECT_ROOT_NAMESPACE}.${CI_PAGES_DOMAIN}"
ASTRO_BASE: "/${CI_PROJECT_NAMESPACE}"
pages: pages:
stage: deploy stage: deploy
tags: tags:
...@@ -10,6 +15,7 @@ pages: ...@@ -10,6 +15,7 @@ pages:
- node_modules/ - node_modules/
script: script:
# Specify the steps involved to build your app here # Specify the steps involved to build your app here
- echo "Astro full URL is ${ASTRO_URL}${ASTRO_BASE}"
- npm ci - npm ci
- npm run build - npm run build
artifacts: artifacts:
......
...@@ -6,6 +6,6 @@ export default defineConfig({ ...@@ -6,6 +6,6 @@ export default defineConfig({
sitemap: true, sitemap: true,
outDir: 'public', outDir: 'public',
publicDir: 'static', publicDir: 'static',
site: 'https://froggit.froggit.page', site: process.env.ASTRO_URL ||'https://domain.tld',
base: '/poc/astrojs' base: process.env.ASTRO_BASE || '/'
}); });
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment