Correct CI pipeline
All checks were successful
ci/woodpecker/push/woodpecker Pipeline was successful
All checks were successful
ci/woodpecker/push/woodpecker Pipeline was successful
This commit is contained in:
parent
563dd295b9
commit
d15aaf28e2
4 changed files with 222 additions and 224 deletions
|
@ -1,38 +1,34 @@
|
|||
variables:
|
||||
- &NODE_VERSION 20.17.0
|
||||
- &GO_VERSION 1.22.3
|
||||
- &NODE_VERSION 20.17.0
|
||||
- &HUGO_ENV: production
|
||||
|
||||
---
|
||||
|
||||
steps:
|
||||
- name: build
|
||||
image: node:*NODE_VERSION
|
||||
environment:
|
||||
NODE_VERSION: *NODE_VERSION
|
||||
GO_VERSION: *GO_VERSION
|
||||
NODE_VERSION: *NODE_VERSION
|
||||
HUGO_ENV: *HUGO_ENV
|
||||
|
||||
when:
|
||||
event: [push]
|
||||
image: node:20.17.0
|
||||
commands:
|
||||
- echo "USING NODE ${NODE_VERSION}"
|
||||
- export GO_VERSION=1.22.3
|
||||
- export HUGO_VERSION=0.134.2
|
||||
- export HUGO_ENV=production
|
||||
- apt-get update && apt-get install -y curl
|
||||
- curl -LO "https://github.com/gohugoio/hugo/releases/download/v${HUGO_VERSION}/hugo_extended_${HUGO_VERSION}_Linux-64bit.tar.gz"
|
||||
- tar -xvf hugo_extended_${HUGO_VERSION}_Linux-64bit.tar.gz
|
||||
- echo "https://github.com/gohugoio/hugo/releases/download/v$${HUGO_VERSION}/hugo_extended_$${HUGO_VERSION}_Linux-64bit.tar.gz"
|
||||
- curl -LO "https://github.com/gohugoio/hugo/releases/download/v$${HUGO_VERSION}/hugo_extended_$${HUGO_VERSION}_Linux-64bit.tar.gz"
|
||||
- tar -xvf hugo_extended_$${HUGO_VERSION}_Linux-64bit.tar.gz
|
||||
- mv hugo /usr/local/bin/
|
||||
- rm hugo_extended_${HUGO_VERSION}_Linux-64bit.tar.gz
|
||||
- echo "HUGO ${HUGO_VERSION} INSTALLED"
|
||||
- curl -LO "https://dl.google.com/go/go${GO_VERSION}.linux-amd64.tar.gz"
|
||||
- tar -C /usr/local -xzf go${GO_VERSION}.linux-amd64.tar.gz
|
||||
- rm hugo_extended_$${HUGO_VERSION}_Linux-64bit.tar.gz
|
||||
- echo "HUGO $${HUGO_VERSION} INSTALLED"
|
||||
- curl -LO "https://dl.google.com/go/go$${GO_VERSION}.linux-amd64.tar.gz"
|
||||
- tar -C /usr/local -xzf go$${GO_VERSION}.linux-amd64.tar.gz
|
||||
- export PATH=$PATH:/usr/local/go/bin
|
||||
- rm go${GO_VERSION}.linux-amd64.tar.gz
|
||||
- echo "GO ${GO_VERSION} INSTALLED"
|
||||
- rm go$${GO_VERSION}.linux-amd64.tar.gz
|
||||
- echo "GO $${GO_VERSION} INSTALLED"
|
||||
- npm run project-setup
|
||||
- npm install
|
||||
- npm run build
|
||||
|
||||
- name: deploy
|
||||
when:
|
||||
event: [push]
|
||||
branch: hugoplate
|
||||
branch: [hugoplate, woodpecker]
|
||||
image: plugins/s3
|
||||
settings:
|
||||
bucket: chtinux
|
||||
|
@ -42,7 +38,6 @@ steps:
|
|||
from_secret: chtinux_aws_access_key_id
|
||||
secret_key:
|
||||
from_secret: chtinux_aws_secret_access_key
|
||||
source: ./public/
|
||||
source: public/
|
||||
target: /
|
||||
path_style: true
|
||||
|
||||
|
|
13
README.md
13
README.md
|
@ -17,12 +17,15 @@ Un script python récupere l'ics de l'agenda du libre et génére les pages hugo
|
|||
./recup_agenda.sh
|
||||
</code>
|
||||
|
||||
Le script fonctionne avec python3
|
||||
Le script fonctionne avec python3, et dépend du paquet `icalendar`.
|
||||
|
||||
## DNS Records
|
||||
|
||||
DSN records were changed with the migration from linux62 to deuxfleurs
|
||||
## Changing the DNS records
|
||||
|
||||
The DSN records with type A and IP 213.36.253.12
|
||||
Is now changed to ALIAS garage.deuxfleurs.fr`
|
||||
To point the live chtinux.org site to Deuxfleurs' infrastructure (from linux62), update its DNS records in Gandi.
|
||||
|
||||
From: `@ A XXX.YY.ZZZ.AA`
|
||||
|
||||
To: `@ ALIAS garage.deuxfleurs.fr`
|
||||
|
||||
Also ensure no other CNAME points to @.
|
||||
|
|
|
@ -1,6 +1,6 @@
|
|||
######################## default configuration ####################
|
||||
# The base URL of your site (required). This will be prepended to all relative URLs.
|
||||
baseURL = "https://chtinux.butternet.net"
|
||||
baseURL = "https://chtinux.web.deuxfleurs.fr/"
|
||||
# Title of your website (required).
|
||||
title = "Chtinux"
|
||||
# Your theme name
|
||||
|
|
0
recup_agenda.sh
Normal file → Executable file
0
recup_agenda.sh
Normal file → Executable file
Loading…
Reference in a new issue