Compare commits

..

2 Commits

Author SHA1 Message Date
e37ade5929 test cicd
Some checks failed
continuous-integration/drone/push Build is failing
2024-09-23 15:11:10 +02:00
714249afbb changing var to 12 posts per page 2024-09-19 11:18:44 +02:00
2 changed files with 19 additions and 33 deletions

View File

@ -8,42 +8,28 @@ clone:
server:
host:
from_secret: ssh_dev_host
from_secret: build_server_host
user:
from_secret: ssh_dev_user
from_secret: build_server_user
password:
from_secret: ssh_dev_password
from_secret: build_server_password
steps:
- name: Clonage du Repo
commands:
- git clone https://git.deligraph.be/Antoine/homegrade_theme_production.git
# - name: Installation du package
# commands:
# - cd homegrade_theme_production
# - npm install
# - name: Build du package
# commands:
# - cd homegrade_theme_production
# - npm run production
- name: Déploiement du thème
environment:
THEME_FOLDER_NAME:
from_secret: theme_folder_name
DEV_SERVER_THEMES_PATH:
from_secret: dev_server_theme_path
DEV_SERVER_HOST:
from_secret: dev_server_host
DEV_SERVER_PORT:
from_secret: dev_server_port
PROD_SERVER_HOST:
from_secret: prod_server_host
PROD_SERVER_THEMES_PATH:
from_secret: prod_server_themes_path
- name: Installation du package
commands:
# - cd homegrade_theme_production
- mkdir test
- rsync -avhpn -e 'ssh -p 1982' ./test $DEV_SERVER_HOST:$DEV_SERVER_THEMES_PATH/test --exclude 'node_modules' --exclude 'Makefile' --exclude 'Makefile_dev' --exclude '.env' --exclude '.env_prod' --exclude '.env_dev' --exclude '.git'
- cd homegrade_theme_production
- npm install
- name: Build du package
commands:
- cd homegrade_theme_production
- npm run production
- name: Déploiement sur le serveur de prod
environment:
PROD_SERVER_PATH:
from_secret: prod_server_path
commands:
- cd lhoist-stay-safe__backend-theme
- rsync -avhpn -e 'ssh -p 22' ./ $PROD_SERVER_PATH:back/wp-content/themes/Deligraph_lhoist --exclude 'node_modules' --exclude 'Makefile' --exclude '.git' --exclude '.env' --exclude '.env_prod' --exclude '.env_dev'

View File

@ -8,7 +8,7 @@ $args = array(
$relatedPageTemplatePage = get_pages($args) ? get_pages($args)[0] : null;
$pageIcon = get_field('page_icon', get_queried_object_id()) ?? null;
$posts_per_page = 4;
$posts_per_page = 12;
$args = array(
"post_type" => "post",
"status" => "publish",