Compare commits

..

3 Commits

Author SHA1 Message Date
e0d8a36ab2 Adiciona ack ao deploy 2023-07-21 13:11:30 +01:00
1c98cfcdc7 Mais alpine 2023-07-21 00:28:00 +01:00
5f6dbefe77 Adiciona bash ao CI 2023-07-20 23:40:07 +01:00
2 changed files with 8 additions and 6 deletions

View File

@ -8,7 +8,7 @@ variables:
default: default:
before_script: before_script:
- export PATH="/root/.cargo/bin:$PATH" - export PATH="/root/.cargo/bin:$PATH"
- apk add --update --no-cache git go make yq cargo pkgconfig openssl openssl-dev - apk add --update --no-cache git go make yq cargo pkgconfig openssl openssl-dev bash ack
- cargo install stork-search --locked --all-features - cargo install stork-search --locked --all-features
test: test:

View File

@ -9,10 +9,12 @@ frontmatter_handling = "Parse"
files = [ files = [
EOF EOF
find content/artigos -name "*.md" -printf "%P\n" | while read filename; do find content/artigos -name "*.md" |
slug="$(echo "$filename" | sed -e 's|/index.md||')" sed -e 's|content/artigos/||' |
date="$(cat "content/artigos/$filename" | yq --front-matter=extract .date | sed -e 's/ ..:..:..//' -e 's/-/\//g')" while read filename; do
echo " {url=\"$date/$slug\", title=\"\", path=\"$filename\"}," slug="$(echo "$filename" | sed -e 's|/index.md||')"
done date="$(cat "content/artigos/$filename" | yq --front-matter=extract .date | sed -e 's/ ..:..:..//' -e 's/-/\//g')"
echo " {url=\"$date/$slug\", title=\"\", path=\"$filename\"},"
done
echo "]" echo "]"