Skip to content
Snippets Groups Projects
Unverified Commit 016b5057 authored by Andrei Jiroh Eugenio Halili's avatar Andrei Jiroh Eugenio Halili :school: Committed by Andrei Jiroh Halili (RecapTime.dev)
Browse files

ci(netlify): use specialized build script for metadata file

parent 144b698a
No related branches found
No related tags found
No related merge requests found
{
"commitId": $BUILD_COMMIT,
"buildId": $BUILD_ID,
"buildLogs": $BUILD_LOGS_URL
}
\ No newline at end of file
#!/bin/bash
if [[ $FF_DISABLE_VENV_USAGE_DURING_BUILD != "false" ]]; then
echo "setting up virtualenv"
python3 -m venv .venv
source .venv/bin/activate
else
echo "virtualenv disabled for this build"
fi
echo
echo "installing packages"
pip3 install -r requirements.txt --upgrade
echo "building site"
mkdocs build --verbose
echo
echo "copying .well-known files"
cp -vr content/.well-known site/.well-known
\ No newline at end of file
#!/usr/bin/env bash
set -x
GIT_ROOTDIR=$(git rev-parse --show-toplevel)
# https://docs.netlify.com/configure-builds/environment-variables/#build-metadata
BUILD_COMMIT=${COMMIT_REF}
BUILD_ID=${BUILD_ID}
BUILD_LOGS_URL="https://app.netlify.com/sites/recaptime-squad-wiki/deploys/${DEPLOY_ID}"
if [[ $NETLIFY != "true" ]]; then
echo "Script not ran inside Netlify CI"
exit 1
fi
bash "$GIT_ROOTDIR/scripts/build.sh"
cat "$GIT_ROOTDIR/scripts/build-metadata.json" | envsubst > "$GIT_ROOTDIRsite/build-metadata.json"
\ No newline at end of file
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment