From 0c6d4a3de166a6ae555501f0849feffe12734fea Mon Sep 17 00:00:00 2001 From: Artem K Date: Wed, 2 Jul 2025 21:30:59 +0200 Subject: [PATCH] debug pipeline --- .gitlab-ci.yml | 18 +++++++++++++++--- 1 file changed, 15 insertions(+), 3 deletions(-) diff --git a/.gitlab-ci.yml b/.gitlab-ci.yml index 21d418e..c112597 100644 --- a/.gitlab-ci.yml +++ b/.gitlab-ci.yml @@ -25,19 +25,31 @@ build-and-deploy: - apt-get update -qq - apt-get install -y powershell - script: + cript: # Clone template repository from GitHub (public) + - echo "Cloning templates from https://github.com/$TEMPLATES_REPO.git" - git clone https://github.com/$TEMPLATES_REPO.git template # Clone scripts repository from GitHub (private) + - echo "Cloning scripts from GitHub (private repo)" - git clone https://$GITHUB_TOKEN@github.com/$SCRIPTS_REPO.git scripts + # Debug: Check what was cloned + - echo "Contents of current directory:" + - ls -la + - echo "Contents of scripts directory:" + - ls -la scripts/ + # Install Zola - curl -L "https://github.com/getzola/zola/releases/download/v${ZOLA_VERSION}/zola-v${ZOLA_VERSION}-x86_64-unknown-linux-gnu.tar.gz" | tar xz - mv zola /usr/local/bin # Convert JSON to Zola content using PowerShell - - pwsh -Command ". ./scripts/Convert-ToZola.ps1 -MetadataPath ./ -ZolaContentPath ./template/content" + - echo "Running PowerShell conversion script" + - echo "Current working directory: $(pwd)" + - echo "Script path: $(pwd)/scripts/Convert-ToZola.ps1" + - test -f "./scripts/Convert-ToZola.ps1" && echo "Script exists" || echo "Script NOT found" + - pwsh -File "./scripts/Convert-ToZola.ps1" -MetadataPath "./" -ZolaContentPath "./template/content" # Build Zola site - cd template @@ -60,4 +72,4 @@ build-and-deploy: s3cmd sync --acl-public \ --no-mime-magic \ --guess-mime-type \ - ./template/public/ s3://$S3_BUCKET/ + ./template/public/ s3://$S3_BUCKET/ \ No newline at end of file