Updating pipeline to generate logs

This commit is contained in:
shockrah committed 2023-01-16 15:42:42 -08:00
1 parent 4e8d321bfa
commit 13b5578574
4 files changed
+22 -5

No files matched your search

+2
View File
@@ -33,7 +33,9 @@ build-shockrah.xyz:
script:
# Main config is found in the root of this project dir
- hugo
# Make sure to expire these artifacts as they are only needed per deployment
artifacts:
expire_in: 1 week
paths:
- public/
+1 -1
View File
@@ -4,5 +4,5 @@
tasks:
- name: Copy Blog Content
copy:
src: "./public/"
src: "public/"
dest: /var/www/shockrah.xyz
+3 -3
View File
@@ -1,10 +1,10 @@
#!/bin/bash
#!/bin/bash -e
[[ "$1" = "" ]] && echo No filename given for new post\! && exit 1
file="$1"
file="$(basename $1)"
cat << EOF | tee content/posts/"$file"
cat << EOF | tee content/posts/"$file.md"
---
title: $(basename -s .md "$file")
date: $(date '+%F')
+16 -1
View File
@@ -1,7 +1,22 @@
#!/bin/sh
set -x
set -e
# Build to optimize images and not much else if im being honest
usage() {
cat <<EOF
Summary:
Will compress and resize images so that they don't take up too much space
and are easier on traffic usage
Usage:
optimize.sh [files to optimize...]
EOF
}
if [ -z "$1" ]; then
usage
exit 1
fi
mkdir -p output/
for f in "$@"; do
convert -resize 900x $f output/`basename $f`