Prepare docker workflow
This commit is contained in:
20
scripts/build.sh
Executable file
20
scripts/build.sh
Executable file
@@ -0,0 +1,20 @@
|
||||
#!/bin/sh
|
||||
|
||||
# Exit immediately if a command exits with a non-zero status.
|
||||
set -e
|
||||
|
||||
echo "Building CSS..."
|
||||
# Assuming sass is installed and available in the environment or Docker image
|
||||
# Compile theme.scss to theme.css
|
||||
sass assets/css/scss/theme.scss static/assets/css/theme.css
|
||||
|
||||
echo "Fetching content from WordPress..."
|
||||
# Assuming Node.js is installed and available in the environment or Docker image
|
||||
node scripts/fetch-wordpress.js
|
||||
|
||||
echo "Generating production build with Hugo..."
|
||||
|
||||
# Assuming Hugo is installed and available in the environment or Docker image
|
||||
hugo --minify --environment production --config hugo.toml
|
||||
|
||||
echo "Build process completed successfully!"
|
||||
Reference in New Issue
Block a user