3 Commits

Author SHA1 Message Date
Max
924b22f2ca fix: ignore Gitea Actions for now 2025-01-09 15:34:10 -05:00
Max
5fad958cec fix: ignore certain files for jekyll 2025-01-09 15:33:42 -05:00
Max
60f194ac7d fix: no backend here 2025-01-09 15:29:09 -05:00
5 changed files with 13 additions and 67 deletions

View File

@@ -1,39 +0,0 @@
name: Prepare changes for deployment.
on:
push:
branches:
- 'main'
jobs:
prepare:
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@v3
with:
token: ${{ secrets.SECRET }}
- uses: actions/setup-node@v3
with:
node-version: '16'
- name: Install dependencies.
run: npm i -g terser csso-cli
- name: "Copying changes over to build."
run: git checkout -b build
- name: Minify files.
run: |
find . -name "*.js" -type f -exec terser {} -c -o {} \;
find . -name "*.css" -type f -exec csso {} -o {} \;
- name: "Commiting changes."
run: |
git config user.name github-actions
git config user.email noreply@github.com
git commit -am "Preparing changes for deployment."
- name: "Pushing changes."
run: git push -uf origin build

5
.gitignore vendored
View File

@@ -45,4 +45,7 @@ terraform.rc
# ---------------------------------------------------------------------------- #
# Custom ignores.
# Custom ignores.
*.tfvars
*.tfbackend

View File

@@ -4,12 +4,13 @@ env: { TF: terraform -chdir=terraform }
silent: true
tasks:
tf/init: $TF init -backend-config=../secrets/backend.json
tf/init: $TF init -backend-config=s3.tfbackend
tf/plan: $TF plan
tf/destroy: $TF destroy
tf/format: $TF fmt -recursive
tf/apply:
- $TF apply
- $TF output -json > secrets/terraform.json
- $TF output -json > terraform.secrets
action: act -W .gitea/workflows --container-architecture linux/amd64
action: act -W .gitea/workflows --container-architecture linux/amd64
dev: bundle exec jekyll serve

5
_config.yml Normal file
View File

@@ -0,0 +1,5 @@
exclude:
- "*.yml"
- "*.md"
- "LICENSE"
- "terraform/*"

View File

@@ -1,24 +0,0 @@
# This file is maintained automatically by "terraform init".
# Manual edits may be lost in future updates.
provider "registry.terraform.io/hashicorp/aws" {
version = "5.83.0"
hashes = [
"h1:uh/57vwauk96J9HjqvjmWV9sLXbX0YXbYnqUBWooiwQ=",
"zh:03a1d4cb151efd9279a3348ecb5e26fe99eb5d217b254e544c7f768a03020d0e",
"zh:07637e75abd0809454d9b51b4499059e6fd3eb58d4723c99bc71d21595a9b897",
"zh:415868ead3d9b9527418c68468972dd0c9614e69240133d8b1d77641259eb396",
"zh:52f343f08881fc88fcbd731cdf480c02edd6eb335934107bbcfb0d97c2a575df",
"zh:60d19aed16142fce6fd95087d9de8d8f59681db98588f9384112045ce533f3ce",
"zh:62775ba5933b41d00df59fe7ae02027d328ccedc06ff5363ff8d2f48633c4012",
"zh:95c7a13b5ef625a672f0ac94d1a20858f60bf09a6517b180f031b707f37d862d",
"zh:9adf0d9f349e692b9f51375713c316d28d217f72d2b86deb49e48c3834a41539",
"zh:9b12af85486a96aedd8d7984b0ff811a4b42e3d88dad1a3fb4c0b580d04fa425",
"zh:b605deb6d3eff97218b6b16b153038ac8e7bd0b8506ae469f2368281dca46cab",
"zh:b8542b3672bca0c6ed522b8f65d92ef5720786301abc7d7dae07f07296398b4c",
"zh:d975790f409234f9791633adba3ffcfbb2526bc04aed1f379fc8f90370366907",
"zh:e621bd43f3a46f122ec450828d590ee2f34c0be5603120876ddfc218861b1802",
"zh:e87e2989e99aa21bbfdb603e1325afe11af126684c64821eca8d014f8b762ca5",
"zh:f7f6f149d6e1e9d4b979b23b248df14bfe3c497052ec41a6dd40d19bcd9cde9a",
]
}