Compare commits

..

No commits in common. "e37ade5929f7a78413921e759cfec42f6f35d522" and "e34777d9a194f45880c33b3c9ff3a77a58fde419" have entirely different histories.

2 changed files with 32 additions and 18 deletions

View File

@ -8,28 +8,42 @@ clone:
server: server:
host: host:
from_secret: build_server_host from_secret: ssh_dev_host
user: user:
from_secret: build_server_user from_secret: ssh_dev_user
password: password:
from_secret: build_server_password from_secret: ssh_dev_password
steps: steps:
- name: Clonage du Repo - name: Clonage du Repo
commands: commands:
- git clone https://git.deligraph.be/Antoine/homegrade_theme_production.git - git clone https://git.deligraph.be/Antoine/homegrade_theme_production.git
- name: Installation du package
commands: # - name: Installation du package
- cd homegrade_theme_production # commands:
- npm install # - cd homegrade_theme_production
- name: Build du package # - npm install
commands:
- cd homegrade_theme_production # - name: Build du package
- npm run production # commands:
- name: Déploiement sur le serveur de prod # - cd homegrade_theme_production
# - npm run production
- name: Déploiement du thème
environment: environment:
PROD_SERVER_PATH: THEME_FOLDER_NAME:
from_secret: prod_server_path 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
commands: commands:
- cd lhoist-stay-safe__backend-theme # - cd homegrade_theme_production
- 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' - 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'

View File

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