PAGES - switch to gitlab pages

This commit is contained in:
Paul 2023-07-19 14:17:40 +00:00
parent cd22dd79af
commit 685a217eba
6 changed files with 22 additions and 55 deletions

View File

@ -1,48 +0,0 @@
---
kind: pipeline
type: docker
name: default
platform:
os: linux
arch: arm64
clone:
disable: true
steps:
- name: clone
image: alpine
commands:
- apk add --no-cache git
- git clone --recursive $DRONE_GIT_HTTP_URL .
- git checkout $DRONE_COMMIT
- name: build
image: plugins/hugo
settings:
hugo_version: 0.70.0
validate: true
- name: deploy
image: appleboy/drone-scp
settings:
debug: true
tar_tmp_path: /tmp/
host:
from_secret: ssh_host
target: /var/www/fic/doc/
source: public/*
strip_components: 1
username:
from_secret: ssh_username
key:
from_secret: deploy_key
port:
from_secret: ssh_port
when:
branch:
- master
event:
exclude:
- pull_request

19
.gitlab-ci.yml Normal file
View File

@ -0,0 +1,19 @@
#
# All available Hugo versions are listed under https://gitlab.com/pages/hugo/container_registry.
#
image: registry.gitlab.com/pages/hugo/hugo:latest
stages:
- build
before_script:
- git submodule init
- git submodule update
pages:
stage: build
script:
- hugo
artifacts:
paths:
- public

3
.gitmodules vendored
View File

@ -1,6 +1,3 @@
[submodule "themes/hugo-lamp"]
path = themes/hugo-lamp
url = https://github.com/huyb1991/hugo-lamp
[submodule "themes/hugo-theme-learn"] [submodule "themes/hugo-theme-learn"]
path = themes/hugo-theme-learn path = themes/hugo-theme-learn
url = https://github.com/matcornic/hugo-theme-learn.git url = https://github.com/matcornic/hugo-theme-learn.git

View File

@ -1,4 +1,4 @@
baseURL = "https://fic.srs.epita.fr/doc/" baseURL = "https://specs.fic.srs.epita.fr/"
languageCode = "fr-fr" languageCode = "fr-fr"
defaultContentLanguage = "fr" defaultContentLanguage = "fr"

View File

@ -1,3 +1,3 @@
<a id="logo" href="/doc/"> <a id="logo" href="/">
<img src="/doc/img/fic.png" alt="FIC"> <img src="/img/fic.png" alt="FIC">
</a> </a>

@ -1 +0,0 @@
Subproject commit fa4b9c282952d64e33fec74b75f5aed1caa36f03