Skip to content
Snippets Groups Projects
Commit e35ea61f authored by Liliana Sanfilippo's avatar Liliana Sanfilippo
Browse files

Cleared .gitlab-ci.yml file

parent 37b53a94
Branches main
No related tags found
No related merge requests found
Pipeline #527171 canceled
image: node:18.20.0
build:
stage: build
cache:
- key: $CI_COMMIT_REF_SLUG
paths:
- .yarn-cache/
before_script:
- echo 'yarn-offline-mirror ".yarn-cache/"' >> .yarnrc
- echo 'yarn-offline-mirror-pruning true' >> .yarnrc
- apt-get update && apt-get install -y libpangocairo-1.0-0
- yarn install --frozen-lockfile
- echo "$VITE_TEAM_NAME"
- echo "Environment variables:"
- printenv
- echo "Node version:"
- node -v
- echo "npm version:"
- npm -v
- echo "Installed packages:"
- yarn list
script:
- yarn build
- mv dist public
rules:
- if: $CI_COMMIT_BRANCH != $CI_DEFAULT_BRANCH
pages:
stage: build
cache:
- key:
files:
- yarn.lock
paths:
- .yarn-cache/
before_script:
- echo 'yarn-offline-mirror ".yarn-cache/"' >> .yarnrc
- echo 'yarn-offline-mirror-pruning true' >> .yarnrc
- apt-get update && apt-get install -y libpangocairo-1.0-0
- yarn install --frozen-lockfile
script:
- yarn build
- mv dist public #Ensure the output directory is renamed to public
- echo '/* /index.html 200' > public/_redirects #original
artifacts:
paths:
- public
rules:
- if: $CI_COMMIT_BRANCH == $CI_DEFAULT_BRANCH
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