Skip to content
GitLab
Explore
Sign in
Primary navigation
Search or go to…
Project
M
MVP
Manage
Activity
Members
Labels
Plan
Issues
Issue boards
Milestones
Wiki
Code
Merge requests
Repository
Branches
Commits
Tags
Repository graph
Compare revisions
Snippets
Build
Pipelines
Jobs
Pipeline schedules
Artifacts
Deploy
Releases
Package registry
Model registry
Operate
Environments
Terraform modules
Monitor
Incidents
Analyze
Value stream analytics
Contributor analytics
CI/CD analytics
Repository analytics
Model experiments
Help
Help
Support
GitLab documentation
Compare GitLab plans
Community forum
Contribute to GitLab
Provide feedback
Keyboard shortcuts
?
Snippets
Groups
Projects
Show more breadcrumbs
SO
OC
MVP
Merge requests
!60
Adding .htaccess
Code
Review changes
Check out branch
Download
Patches
Plain diff
Closed
Adding .htaccess
36-apache
into
main
Overview
0
Commits
1
Pipelines
7
Changes
1
Closed
mathieu.dartigues
requested to merge
36-apache
into
main
8 months ago
Overview
0
Commits
1
Pipelines
7
Changes
1
Expand
related to
#36 (closed)
#19
0
0
Merge request reports
Compare
version 2
version 5
6b587607
8 months ago
version 4
9ca17fb9
8 months ago
version 3
4771d868
8 months ago
version 2
e362500d
8 months ago
version 1
7752bf3e
8 months ago
main (base)
and
version 4
latest version
31b49acd
1 commit,
8 months ago
version 5
6b587607
1 commit,
8 months ago
version 4
9ca17fb9
1 commit,
8 months ago
version 3
4771d868
1 commit,
8 months ago
version 2
e362500d
1 commit,
8 months ago
version 1
7752bf3e
1 commit,
8 months ago
Show latest version
1 file
+
68
−
65
Inline
Compare changes
Side-by-side
Inline
Show whitespace changes
Show one file at a time
.gitlab-ci.yml
+
68
−
65
Options
@@ -11,7 +11,7 @@
image
:
node:20
stages
:
-
test
#
- test
-
build
-
deploy
-
teardown
@@ -45,15 +45,15 @@ stages:
-
echo "$SSH_PRIVATE_KEY_DEPLOY_FRONT_ED25519" | tr -d '\r' | ssh-add -
-
echo -e "Host *\n\tStrictHostKeyChecking no\n\n" > ~/.ssh/config
quality-gate
:
image
:
mcr.microsoft.com/playwright:v1.47.1-noble
stage
:
test
only
:
-
merge_requests
script
:
-
npm ci
-
npm run lint
-
npm run test:unit
#
quality-gate:
#
image: mcr.microsoft.com/playwright:v1.47.1-noble
#
stage: test
#
only:
#
- merge_requests
#
script:
#
- npm ci
#
- npm run lint
#
- npm run test:unit
build
:
stage
:
build
@@ -73,19 +73,19 @@ build:
paths
:
-
./dist/
build-storybook
:
stage
:
build
only
:
-
tags
-
merge_requests
-
main
script
:
-
npm ci
-
npm run build-storybook
artifacts
:
expire_in
:
3 week
paths
:
-
./storybook-static/
#
build-storybook:
#
stage: build
#
only:
#
- tags
#
- merge_requests
#
- main
#
script:
#
- npm ci
#
- npm run build-storybook
#
artifacts:
#
expire_in: 3 week
#
paths:
#
- ./storybook-static/
deploy
:
<<
:
*check_ssh
@@ -107,6 +107,9 @@ deploy:
<Directory "/var/www/html/$DELIVERY_DIRECTORY">
FallbackResource /$DELIVERY_DIRECTORY/index.html
</Directory>
<Directory "./">
FallbackResource ./index.html
</Directory>
" >> ./dist/.htaccess
-
ssh gitlab@so-frontend-dev.irit.fr "rm -rf /var/www/html${DELIVERY_DIRECTORY}"
@@ -120,33 +123,33 @@ deploy:
auto_stop_in
:
2 months
on_stop
:
teardown
deploy-storybook
:
<<
:
*check_ssh
stage
:
deploy
variables
:
DELIVERY_DIRECTORY_STORYBOOK
:
'
/mvps-${CI_COMMIT_REF_SLUG}'
only
:
-
tags
-
merge_requests
-
main
dependencies
:
-
build-storybook
script
:
-
apt update
-
apt install rsync -y
-
echo "Will deploy to ${DELIVERY_DIRECTORY_STORYBOOK}"
-
ssh gitlab@so-frontend-dev.irit.fr "rm -rf /var/www/html${DELIVERY_DIRECTORY_STORYBOOK}"
-
rsync -ravP --delete ./storybook-static/ gitlab@so-frontend-dev.irit.fr:/var/www/html${DELIVERY_DIRECTORY_STORYBOOK}/
# Copie de la dernière version commiter sur le main sur le chemin /last aussi
# - if [ "$CI_COMMIT_BRANCH" == "main" ]; then rsync -rav --delete ./dist gitlab@so-frontend-dev.irit.fr:/var/www/html/mvp-last; fi
environment
:
name
:
review/mvps-${CI_COMMIT_REF_SLUG}
url
:
https://opencommon.irit.fr/mvps-${CI_COMMIT_REF_SLUG}
auto_stop_in
:
2 months
on_stop
:
teardown-storybook
#
deploy-storybook:
#
<<: *check_ssh
#
stage: deploy
#
variables:
#
DELIVERY_DIRECTORY_STORYBOOK: '/mvps-${CI_COMMIT_REF_SLUG}'
#
only:
#
- tags
#
- merge_requests
#
- main
#
dependencies:
#
- build-storybook
#
script:
#
- apt update
#
- apt install rsync -y
#
- echo "Will deploy to ${DELIVERY_DIRECTORY_STORYBOOK}"
#
- ssh gitlab@so-frontend-dev.irit.fr "rm -rf /var/www/html${DELIVERY_DIRECTORY_STORYBOOK}"
#
- rsync -ravP --delete ./storybook-static/ gitlab@so-frontend-dev.irit.fr:/var/www/html${DELIVERY_DIRECTORY_STORYBOOK}/
#
# Copie de la dernière version commiter sur le main sur le chemin /last aussi
#
# - if [ "$CI_COMMIT_BRANCH" == "main" ]; then rsync -rav --delete ./dist gitlab@so-frontend-dev.irit.fr:/var/www/html/mvp-last; fi
#
environment:
#
name: review/mvps-${CI_COMMIT_REF_SLUG}
#
url: https://opencommon.irit.fr/mvps-${CI_COMMIT_REF_SLUG}
#
auto_stop_in: 2 months
#
on_stop: teardown-storybook
teardown
:
<<
:
*check_ssh
@@ -164,18 +167,18 @@ teardown:
-
echo "Fin de la MR => on supprime le répertoire déployé $DELIVERY_DIRECTORY"
-
ssh gitlab@so-frontend-dev.irit.fr "rm -rf /var/www/html${DELIVERY_DIRECTORY}"
teardown-storybook
:
<<
:
*check_ssh
stage
:
teardown
only
:
-
merge_requests
variables
:
GIT_STRATEGY
:
none
DELIVERY_DIRECTORY_STORYBOOK
:
'
/mvps-${CI_COMMIT_REF_SLUG}'
when
:
manual
environment
:
name
:
review/mvps-${CI_COMMIT_REF_SLUG}
action
:
stop
script
:
-
echo "Fin de la MR => on supprime le répertoire storybook déployé $DELIVERY_DIRECTORY_STORYBOOK"
-
ssh gitlab@so-frontend-dev.irit.fr "rm -rf /var/www/html${DELIVERY_DIRECTORY_STORYBOOK}"
#
teardown-storybook:
#
<<: *check_ssh
#
stage: teardown
#
only:
#
- merge_requests
#
variables:
#
GIT_STRATEGY: none
#
DELIVERY_DIRECTORY_STORYBOOK: '/mvps-${CI_COMMIT_REF_SLUG}'
#
when: manual
#
environment:
#
name: review/mvps-${CI_COMMIT_REF_SLUG}
#
action: stop
#
script:
#
- echo "Fin de la MR => on supprime le répertoire storybook déployé $DELIVERY_DIRECTORY_STORYBOOK"
#
- ssh gitlab@so-frontend-dev.irit.fr "rm -rf /var/www/html${DELIVERY_DIRECTORY_STORYBOOK}"
Loading