Skip to content
GitLab
Explore
Sign in
Primary navigation
Search or go to…
Project
A
Autoévaluation
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
Container 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
Terms and privacy
Keyboard shortcuts
?
Snippets
Groups
Projects
Show more breadcrumbs
web-et-numerique
web-et-numerique-internet
WordPress
sites
Jeu Inclusif
Autoévaluation
Commits
43f07e5b
Commit
43f07e5b
authored
1 month ago
by
Matthieu Benoist
Browse files
Options
Downloads
Patches
Plain Diff
Add ci/cd and dev env
parent
75fd6f1e
Branches
main
No related tags found
No related merge requests found
Changes
5
Hide whitespace changes
Inline
Side-by-side
Showing
5 changed files
.env.example
+4
-0
4 additions, 0 deletions
.env.example
.gitignore
+1
-1
1 addition, 1 deletion
.gitignore
.gitlab-ci.yml
+36
-0
36 additions, 0 deletions
.gitlab-ci.yml
Makefile
+47
-0
47 additions, 0 deletions
Makefile
docker-compose.yml
+21
-0
21 additions, 0 deletions
docker-compose.yml
with
109 additions
and
1 deletion
.env.example
0 → 100644
+
4
−
0
View file @
43f07e5b
PROJECT_NAME=auto-evaluation
PROJECT_HOSTNAME=autoeval.grandlyon.localhost
CERT_SIZE=1
This diff is collapsed.
Click to expand it.
.gitignore
+
1
−
1
View file @
43f07e5b
...
...
@@ -37,7 +37,7 @@ package-lock.json
/libpeerconnection.log
testem.log
/typings
/.env
# System files
.DS_Store
Thumbs.db
This diff is collapsed.
Click to expand it.
.gitlab-ci.yml
0 → 100644
+
36
−
0
View file @
43f07e5b
image
:
node:20
stages
:
-
build
-
release
# Build job
build
:
stage
:
build
script
:
-
npm install
# install deps
-
npm run build
# Compile
artifacts
:
paths
:
-
dist/
# we save the compiled files in an artefact
expire_in
:
1 day
only
:
-
tags
# triggered with tag
# Release job
release
:
stage
:
release
needs
:
[
build
]
image
:
registry.gitlab.com/gitlab-org/release-cli:latest
script
:
-
echo "Création de la release pour le tag $CI_COMMIT_TAG"
release
:
tag_name
:
$CI_COMMIT_TAG
name
:
"
Release
$CI_COMMIT_TAG"
description
:
"
Release
générée
automatiquement
pour
le
tag
$CI_COMMIT_TAG"
assets
:
links
:
-
name
:
"
Télécharger
la
version
compilée"
url
:
"
${CI_PROJECT_URL}/-/jobs/artifacts/${CI_COMMIT_TAG}/download?job=build"
only
:
-
tags
This diff is collapsed.
Click to expand it.
Makefile
0 → 100644
+
47
−
0
View file @
43f07e5b
ifneq
(,$(wildcard ./.env))
include
.env
endif
.PHONY
:
config
config
:
cp
.env.example .env
# Docker
up
:
docker compose up
-d
down
:
docker compose down
ps
:
docker compose ps
rebuild
:
docker compose down
--remove-orphans
docker compose build
--no-cache
docker compose up
-d
# Mkcert
define
config_toml
[[tls.certificates]]
certFile
=
"/certs/
${
PROJECT_HOSTNAME
}
+
${
CERT_SIZE
}
.pem"
keyFile
=
"/certs/
${
PROJECT_HOSTNAME
}
+
${
CERT_SIZE
}
-key.pem"
endef
export
config_toml
npm-install
:
docker compose run
--rm
node npm
install
certs
:
mkdir
-p
${
HOME
}
/.dockerdev/traefik/certs
${
HOME
}
/.dockerdev/traefik/conf
mkcert
${
PROJECT_HOSTNAME
}
*
.
${
PROJECT_HOSTNAME
}
${
CERT_ALIASES
}
mv
*
.pem ~/.dockerdev/traefik/certs
@
echo
"
$$
config_toml"
>
~/.dockerdev/traefik/conf/
${
PROJECT_NAME
}
-certs
.toml
install
:
config certs up
This diff is collapsed.
Click to expand it.
docker-compose.yml
0 → 100644
+
21
−
0
View file @
43f07e5b
services
:
node
:
image
:
trion/ng-cli:17.2.1
restart
:
unless-stopped
volumes
:
-
./:/app
working_dir
:
/app
command
:
ng serve --host 0.0.0.0 --port
4200
networks
:
-
webgateway
labels
:
-
"
traefik.enable=true"
-
"
traefik.http.routers.${PROJECT_NAME}-front.rule=Host(`${PROJECT_HOSTNAME}`)"
-
"
traefik.http.routers.${PROJECT_NAME}-front.tls=true"
-
"
traefik.http.routers.${PROJECT_NAME}-front.entrypoints=websecure"
-
"
traefik.http.services.${PROJECT_NAME}-front.loadbalancer.server.port=4200"
networks
:
webgateway
:
external
:
true
This diff is collapsed.
Click to expand it.
Preview
0%
Loading
Try again
or
attach a new file
.
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Save comment
Cancel
Please
register
or
sign in
to comment