diff --git a/.env.example b/.env.example deleted file mode 100644 index d5ed451..0000000 --- a/.env.example +++ /dev/null @@ -1,5 +0,0 @@ -KOITO_ALLOWED_HOSTS=* -KOITO_LOG_LEVEL=debug -KOITO_CONFIG_DIR=test_config_dir -KOITO_DATABASE_URL=postgres://postgres:secret@localhost:5432?sslmode=disable -TZ=Etc/UTC diff --git a/.github/FUNDING.yml b/.github/FUNDING.yml deleted file mode 100644 index fbf205d..0000000 --- a/.github/FUNDING.yml +++ /dev/null @@ -1,3 +0,0 @@ -# These are supported funding model platforms - -ko_fi: gabehf diff --git a/.github/workflows/astro.yml b/.github/workflows/astro.yml index 428b7b8..2da5fc4 100644 --- a/.github/workflows/astro.yml +++ b/.github/workflows/astro.yml @@ -2,13 +2,10 @@ name: Deploy to GitHub Pages on: push: - tags: - - "v*" + branches: [main] paths: - - "docs/**" - - ".github/workflows/**" - - workflow_dispatch: + - 'docs/**' + - '.github/workflows/**' permissions: contents: read @@ -24,9 +21,9 @@ jobs: - name: Install, build, and upload your site output uses: withastro/action@v4 with: - path: ./docs # The root location of your Astro project inside the repository. (optional) - node-version: 20 # The specific version of Node that should be used to build your site. Defaults to 22. (optional) - package-manager: yarn@1.22.22 # The Node package manager that should be used to install dependencies and build your site. Automatically detected based on your lockfile. (optional) + path: ./docs # The root location of your Astro project inside the repository. (optional) + node-version: 20 # The specific version of Node that should be used to build your site. Defaults to 22. (optional) + package-manager: yarn@1.22.22 # The Node package manager that should be used to install dependencies and build your site. Automatically detected based on your lockfile. (optional) deploy: needs: build @@ -37,4 +34,4 @@ jobs: steps: - name: Deploy to GitHub Pages id: deployment - uses: actions/deploy-pages@v4 + uses: actions/deploy-pages@v4 \ No newline at end of file diff --git a/.github/workflows/docker.yml b/.github/workflows/docker.yml index 466a4f6..95d893e 100644 --- a/.github/workflows/docker.yml +++ b/.github/workflows/docker.yml @@ -17,7 +17,6 @@ on: - main paths-ignore: - "docs/**" - - "README.md" workflow_dispatch: diff --git a/.gitignore b/.gitignore index 083bb78..bade026 100644 --- a/.gitignore +++ b/.gitignore @@ -1,2 +1 @@ test_config_dir -.env diff --git a/Makefile b/Makefile index 99455ac..fbca22e 100644 --- a/Makefile +++ b/Makefile @@ -1,8 +1,3 @@ -ifneq (,$(wildcard ./.env)) - include .env - export -endif - .PHONY: all test clean client postgres.schemadump: @@ -15,7 +10,7 @@ postgres.schemadump: -v --dbname="koitodb" -f "/tmp/dump/schema.sql" postgres.run: - docker run --name koito-db -p 5432:5432 -v koito_dev_db:/var/lib/postgresql -e POSTGRES_PASSWORD=secret -d postgres + docker run --name koito-db -p 5432:5432 -e POSTGRES_PASSWORD=secret -d postgres postgres.run-scratch: docker run --name koito-scratch -p 5433:5432 -e POSTGRES_PASSWORD=secret -d postgres @@ -33,10 +28,10 @@ postgres.remove-scratch: docker stop koito-scratch && docker rm koito-scratch api.debug: postgres.start - go run cmd/api/main.go + KOITO_ALLOWED_HOSTS=* KOITO_LOG_LEVEL=debug KOITO_CONFIG_DIR=test_config_dir KOITO_DATABASE_URL=postgres://postgres:secret@localhost:5432?sslmode=disable go run cmd/api/main.go api.scratch: postgres.run-scratch - KOITO_DATABASE_URL=postgres://postgres:secret@localhost:5433?sslmode=disable go run cmd/api/main.go + KOITO_ALLOWED_HOSTS=* KOITO_LOG_LEVEL=debug KOITO_CONFIG_DIR=test_config_dir/scratch KOITO_DATABASE_URL=postgres://postgres:secret@localhost:5433?sslmode=disable go run cmd/api/main.go api.test: go test ./... -timeout 60s diff --git a/README.md b/README.md index b51b2ff..2bc10ce 100644 --- a/README.md +++ b/README.md @@ -1,21 +1,9 @@ -