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 cccf8257 authored by Christophe Chaudier's avatar Christophe Chaudier :rocket:
Browse files

ci: deploy on froggit pages

parent 0919550c
No related branches found
No related tags found
No related merge requests found
Pipeline #10349 failed
# The Docker image that will be used to build your app
image: node:16.13.2-slim
variables:
ASTRO_URL: "https://soutenir.compagnons-devops.fr"
ASTRO_BASE: "/"
pages:
stage: deploy
tags:
- cache
cache:
paths:
- 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:
paths:
# The folder that contains the built files to be published.
# This must be called "public".
- public
rules:
- if: $CI_COMMIT_BRANCH == $CI_DEFAULT_BRANCH
environment:
name: production
url: "${ASTRO_URL}${ASTRO_BASE}"
......@@ -6,4 +6,10 @@ import tailwind from "@astrojs/tailwind";
// https://astro.build/config
export default defineConfig({
integrations: [tailwind()]
});
\ No newline at end of file
sitemap: true,
outDir: 'public',
publicDir: 'static',
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