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 ef702623 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
No related merge requests found
Pipeline #9710 canceled
# The Docker image that will be used to build your app
image: node:16.13.2-slim
variables:
SUB_GROUP: "www"
ASTRO_URL: "https://${CI_PROJECT_ROOT_NAMESPACE}.${CI_PAGES_DOMAIN}"
ASTRO_BASE: "/${CI_PROJECT_NAMESPACE}"
pages:
stage: deploy
tags:
......@@ -10,6 +16,7 @@ pages:
- node_modules/
script:
# Specify the steps involved to build your app here
- echo "Astro full URL is ${ASTRO_URL}${ASTRO_BASE}"
- npm ci
- npm run build
artifacts:
......
......@@ -6,6 +6,6 @@ export default defineConfig({
sitemap: true,
outDir: 'public',
publicDir: 'static',
site: 'https://froggit.froggit.page',
base: '/poc/astrojs'
site: process.env.ASTRO_URL ||'https://domain.tld',
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