Compare commits

..
79 Commits
Author SHA1 Message Date
wayfinderak 5197c9abf8 Fix database initialization connection leaks
Build and Push Container / build-and-push (push) Successful in 2m18s
2026-05-07 18:34:18 -08:00
wayfinderak b92a2fff97 Tag latest image from master branch
Build and Push Container / build-and-push (push) Successful in 4m31s
2026-05-07 15:17:33 -08:00
wayfinderak 4aff642c51 Add Portainer deployment files
Build and Push Container / build-and-push (push) Failing after 17m55s
2026-05-07 13:55:20 -08:00
wayfinderak 49fc4f0c6e Update .gitea/workflows/build-and-push.yml
Build and Push Container / build-and-push (push) Successful in 2m25s
2026-03-23 06:07:10 +00:00
wayfinderak 79afca5e98 Update .gitea/workflows/build-and-push.yml
Build and Push Container / build-and-push (push) Has been cancelled
2026-03-23 06:04:51 +00:00
wayfinderak 33330c16e3 Update .gitea/workflows/build-and-push.yml
Build and Push Container / build-and-push (push) Failing after 2m43s
2026-03-23 06:01:16 +00:00
wayfinderak 0f0d91f994 Update .gitea/workflows/build-and-push.yml
Build and Push Container / build-and-push (push) Has been cancelled
2026-03-23 05:41:43 +00:00
wayfinderak cf6b7eae81 Migrate deployment to Gitea Actions and Portainer
Build and Push Container / docker (push) Has been cancelled
2026-03-22 11:43:22 -08:00
Dustin Pianalto aea88c632e Add pgbouncer
CI / build (push) Has been cancelled
2021-10-10 20:26:32 -08:00
Dustin Pianalto dd60c9067b Add pgbouncer
CI / build (push) Has been cancelled
2021-10-10 19:56:13 -08:00
Dustin Pianalto 03818d6102 Add pgbouncer
CI / build (push) Has been cancelled
2021-10-10 19:31:01 -08:00
Dustin Pianalto 4e1ca8a700 Add pgbouncer
CI / build (push) Has been cancelled
2021-10-10 19:23:52 -08:00
Dustin Pianalto be0ed2a40d Add pgbouncer
CI / build (push) Has been cancelled
2021-10-10 18:37:26 -08:00
Dustin Pianalto af07976c78 Add pgbouncer
CI / build (push) Has been cancelled
2021-10-10 18:18:40 -08:00
Dusty.P fb4f43c234 Update deployment.yml
CI / build (push) Has been cancelled
2021-10-05 23:45:08 -08:00
Dustin Pianalto 34a6c0cdd3 Merge branch 'master' of github.com:dustinpianalto/Goff
CI / build (push) Has been cancelled
2021-10-05 23:34:30 -08:00
Dusty.P a6cde5c69c Update main.yml
CI / build (push) Has been cancelled
2021-10-05 23:09:00 -08:00
Dustin Pianalto a2420f19c9 Update deployment
CI / build (push) Has been cancelled
2021-10-02 16:18:48 -08:00
Dustin Pianalto 2019dc4643 Update GH action and deployment
CI / build (push) Has been cancelled
2021-10-02 14:13:28 -08:00
Dustin Pianalto 9bb35bb30a Don't check roles when adding
CI / build (push) Has been cancelled
2021-08-18 14:24:20 -08:00
Dustin Pianalto 3cad5680b0 Add guild member update handler
CI / build (push) Has been cancelled
2021-08-18 11:26:25 -08:00
Dustin Pianalto f97494626f Don't add auto role until after membership check
CI / build (push) Has been cancelled
2021-08-18 11:01:24 -08:00
Dustin Pianalto b5a55a1b77 Don't add auto role until after membership check 2021-08-18 11:00:31 -08:00
Dustin Pianalto 02b5842107 Add milliseconds to timestamp
CI / build (push) Has been cancelled
2021-07-23 12:54:23 -08:00
Dustin Pianalto d345044b3a Add milliseconds to timestamp
CI / build (push) Has been cancelled
2021-07-23 12:39:35 -08:00
Dustin Pianalto b3aff0828c Add snowflake command
CI / build (push) Has been cancelled
2021-07-23 12:34:09 -08:00
Dustin Pianalto 3d4518f961 Don't log message edits if the After is blank (problem with message embeds)
CI / build (push) Has been cancelled
2021-07-01 19:54:12 -08:00
Dustin Pianalto 37e8fa52af Fix bug in getting tasks
CI / build (push) Has been cancelled
2021-06-22 12:58:42 -08:00
Dustin Pianalto a370c76ba4 Add Auto Role Feature
CI / build (push) Has been cancelled
2021-06-22 02:20:08 -08:00
Dustin Pianalto 2fe9de279d Add Auto Role Feature
CI / build (push) Has been cancelled
2021-06-22 02:15:42 -08:00
Dustin Pianalto 33776b1129 Add Auto Role Feature
CI / build (push) Has been cancelled
2021-06-22 02:02:47 -08:00
Dustin Pianalto 733cd87896 Add Auto Role Feature
CI / build (push) Has been cancelled
2021-06-22 01:58:31 -08:00
Dustin Pianalto ebf20670df Add Auto Role Feature
CI / build (push) Has been cancelled
2021-06-22 01:47:22 -08:00
Dustin Pianalto 14c5705473 Add Auto Role Feature
CI / build (push) Has been cancelled
2021-06-22 01:44:22 -08:00
Dustin Pianalto c72dcd0ec3 Update actions
CI / build (push) Has been cancelled
2021-06-22 01:37:41 -08:00
Dustin Pianalto 61d500946e Add Auto Role Feature
CI / build (push) Has been cancelled
2021-06-22 01:29:38 -08:00
Dustin Pianalto 65bb218260 Initial DO workflow test
CI / build (push) Has been cancelled
2021-01-13 00:15:42 -09:00
Dustin Pianalto d8d90a8414 Initial DO workflow test
CI / build (push) Has been cancelled
2021-01-12 23:29:51 -09:00
Dustin Pianalto 2e95aa0234 Initial DO workflow test
CI / build (push) Has been cancelled
2021-01-12 23:20:04 -09:00
Dustin Pianalto 480f5b6cc9 Initial DO workflow test
CI / build (push) Has been cancelled
2021-01-12 23:18:19 -09:00
Dustin Pianalto 97793ad622 Initial DO workflow test
CI / build (push) Has been cancelled
2021-01-12 23:16:29 -09:00
Dusty.P d581a9bf32 Merge pull request #8 from dustinpianalto/development
CI / build (push) Has been cancelled
Add action to deploy to ECS after image is built
2020-10-11 22:33:27 -08:00
Dustin Pianalto 13f80a6972 Add action to deploy to ECS after image is built
CI / build (push) Has been cancelled
2020-10-11 22:23:05 -08:00
Dusty.P 20bd455a44 Merge pull request #7 from dustinpianalto/development
CI / build (push) Has been cancelled
Add user to guild on user create
2020-10-09 23:48:07 -08:00
Dustin Pianalto cadef92efb Add user to guild on user create 2020-10-09 23:43:56 -08:00
Dusty.P f6f020ff48 Merge pull request #6 from dustinpianalto/development
CI / build (push) Has been cancelled
Attempt to insert user into db before creating tag
2020-10-09 23:26:02 -08:00
Dustin Pianalto a93139fcf2 Attempt to insert user into db before creating tag 2020-10-09 23:21:35 -08:00
Dusty.P d9ddfaf2cc Merge pull request #5 from dustinpianalto/development
CI / build (push) Has been cancelled
Deploy v0.0.8
2020-10-09 21:56:52 -08:00
Dustin Pianalto 05d4096766 Change default prefix back for main 2020-10-09 21:46:28 -08:00
Dustin Pianalto 6a33cceebb Reorg and add services 2020-10-09 21:34:47 -08:00
Dustin Pianalto 5cd626a5a4 Merge branch 'development' of github.com:dustinpianalto/Goff into development 2020-09-23 12:05:05 -08:00
Dustin Pianalto e2f25eaab4 Remove unnecessary rpn package
the rpn parser was moved to it's own repo and already imported in go.mod
2020-09-23 12:04:52 -08:00
Dusty.P ea058baff5 Create README.md 2020-09-23 11:43:54 -08:00
Dustin Pianalto d9e1efbaf0 Repo Reorg 2020-09-18 18:39:51 -08:00
Dustin Pianalto af506f828d Change db variable name 2020-09-14 12:42:25 -08:00
Dustin Pianalto 5c42616a3a Adjust Connection Pool 2020-09-14 12:36:14 -08:00
Dustin Pianalto 6cc5e042d5 Start Restructure of project 2020-09-14 00:10:24 -08:00
Dusty.P 03e6f069c9 Merge pull request #4 from dustinpianalto/development
Add sar and ping role when posting puzzle
2020-09-02 01:54:34 -08:00
Dustin Pianalto 4db28f5c0b Add sar and ping role when posting puzzle
CI / build (push) Has been cancelled
2020-09-02 01:49:29 -08:00
Dusty.P d876f4ced9 Merge pull request #3 from dustinpianalto/development
CI / build (push) Has been cancelled
Fix addtag removing newlines
2020-09-01 21:40:46 -08:00
Dustin Pianalto fb4d7977aa Fix addtag removing newlines 2020-09-01 21:36:14 -08:00
Dusty.P 68a02e2f24 Merge pull request #2 from dustinpianalto/development
Adding actions and reorg
2020-08-30 22:08:47 -08:00
Dustin Pianalto 30394b35e5 Merge branch 'master' into development
CI / build (push) Has been cancelled
2020-08-30 21:53:25 -08:00
Dustin Pianalto 87961c5081 Remove branch check and also push latest tag 2020-08-30 17:57:19 -08:00
Dustin Pianalto 562ec6acaf Test github.ref to get branch name
CI / build (push) Has been cancelled
2020-08-30 17:09:13 -08:00
Dustin Pianalto 3169953f3f Test github.ref to get branch name
CI / build (push) Has been cancelled
2020-08-30 17:07:37 -08:00
Dustin Pianalto d119425236 revert to previous method of getting branch name
CI / build (push) Has been cancelled
2020-08-30 16:51:00 -08:00
Dustin Pianalto ce1bbbc445 Check branch name 2020-08-30 16:46:05 -08:00
Dustin Pianalto f4ec8a7a49 Fix globs
CI / build (push) Has been cancelled
2020-08-30 16:19:35 -08:00
Dustin Pianalto bec52ad5a5 Fix globs 2020-08-30 16:03:44 -08:00
Dustin Pianalto 5411730a96 Fix globs 2020-08-30 16:03:01 -08:00
Dustin Pianalto 187f9816ca Fix globs 2020-08-30 16:00:59 -08:00
Dustin Pianalto feab8e661c Fix globs 2020-08-30 15:45:28 -08:00
Dustin Pianalto 96b63a4e83 Add action to build and push to ECR 2020-08-30 15:43:45 -08:00
Dustin Pianalto fcddca2226 Delete old organization 2020-08-30 00:10:11 -08:00
Dustin Pianalto 28d78bdb8c Reorganize and update Dockerfile 2020-08-30 00:08:40 -08:00
Dusty.P 35882993c2 Update init.go 2020-08-29 18:42:38 -08:00
Dusty.P 85bcb31d56 Merge pull request #1 from dustinpianalto/development
Add Puzzle parser
2020-08-29 18:37:59 -08:00
Dusty.P 23c0434ed3 Merge branch 'master' into development 2020-08-29 18:27:47 -08:00
7 changed files with 12 additions and 93 deletions
-5
View File
@@ -1,5 +0,0 @@
# Service release contract
Butler resolves this repository's protected source revision to verified immutable images. The platform updates only image references in the existing production Compose file and restarts only the already running application services. It preserves current environment, storage, routes, and provider configuration. It retains previous application images and restores them if readiness fails.
Migration and maintenance images are pinned when declared, but this release operation does not run database migrations or maintenance jobs. A release requiring a schema change needs the corresponding explicit platform migration first. No homelab image-pin commit is required for an ordinary compatible application release.
-12
View File
@@ -1,12 +0,0 @@
{
"version": 1,
"deployment": "goff-release",
"environment": "production",
"images": {
"goff_release_goff_image": {
"name": "goff",
"tag": "sha-{revision}"
}
},
"revision_variable": "goff_release_revision"
}
+8 -31
View File
@@ -3,22 +3,15 @@ name: Build and Push Container
on:
push:
branches:
- master
- master
- main
tags:
- v*
workflow_dispatch: null
pull_request:
branches:
- master
concurrency:
group: ${{ github.workflow }}-${{ github.event_name }}-${{ github.event.pull_request.number
|| github.run_id }}
cancel-in-progress: ${{ github.event_name == 'pull_request' }}
- v*
workflow_dispatch:
jobs:
build-and-push:
runs-on: butler-ci
runs-on: ubuntu-latest
env:
REGISTRY: gitea.wayfinderak.com
IMAGE_NAME: gitea.wayfinderak.com/wayfinderak/goff
@@ -26,20 +19,9 @@ jobs:
options: --dns 172.16.30.10
steps:
- name: Checkout
uses: https://github.com/actions/checkout@v4
uses: actions/checkout@v4
- name: Select relevant delivery work
id: delivery
env:
DELIVERY_EVENT: ${{ github.event_name }}
DELIVERY_REF: ${{ github.ref }}
DELIVERY_SHA: ${{ github.sha }}
DELIVERY_BASE: ${{ github.event.pull_request.base.sha || github.event.before }}
run: |
cd .
bash scripts/ci-select.sh
- name: Install Go and Docker CLI if needed
if: ${{ steps.delivery.outputs.run == 'true' }}
shell: bash
run: |
set -euo pipefail
@@ -80,11 +62,9 @@ jobs:
docker version
- name: Run tests
if: ${{ steps.delivery.outputs.run == 'true' }}
run: go test ./...
- name: Log in to Gitea Container Registry
if: ${{ (steps.delivery.outputs.run == 'true') && github.event_name != 'pull_request' }}
shell: bash
run: |
set -euo pipefail
@@ -99,7 +79,6 @@ jobs:
exit 1
- name: Determine image tags
if: ${{ steps.delivery.outputs.run == 'true' }}
id: meta
shell: bash
env:
@@ -108,7 +87,7 @@ jobs:
SHA: ${{ gitea.sha }}
run: |
set -euo pipefail
tags=("$IMAGE_NAME:sha-$SHA")
tags=()
if [[ "$REF" == refs/tags/* ]]; then
version="$REF_NAME"
@@ -130,7 +109,6 @@ jobs:
printf 'EOF\n' >> "$GITHUB_OUTPUT"
- name: Build image
if: ${{ steps.delivery.outputs.run == 'true' }}
shell: bash
run: |
set -euo pipefail
@@ -143,10 +121,9 @@ jobs:
build_args+=(--tag "$tag")
done
docker build --label "org.opencontainers.image.revision=$GITHUB_SHA" "${build_args[@]}" .
docker build "${build_args[@]}" .
- name: Push image
if: ${{ (steps.delivery.outputs.run == 'true') && github.event_name != 'pull_request' }}
shell: bash
run: |
set -euo pipefail
-2
View File
@@ -1,4 +1,2 @@
.env
.idea
portainer-app.env
+4
View File
@@ -0,0 +1,4 @@
DATABASE_URL=postgresql://goff:DCkTm6Nns9hi8j@10.0.0.202:5432/goff
DISCORDGO_TOKEN=NjkyOTA4MTM5NTA2NDM0MDY1.Xn1W_g.SKCxfilgBc2PFCYvK2pXhqme_fc
GOFF_EMAIL_USERNAME=goff@djpianalto.com
GOFF_EMAIL_PASSWORD=1MzV9VU8u4J2
-4
View File
@@ -1,4 +0,0 @@
DATABASE_URL=postgresql://USER:PASSWORD@HOST:5432/goff?sslmode=disable
DISCORDGO_TOKEN=replace-me
GOFF_EMAIL_USERNAME=replace-me
GOFF_EMAIL_PASSWORD=replace-me
-39
View File
@@ -1,39 +0,0 @@
#!/usr/bin/env bash
# Keep required jobs alive; only skip reviewed non-runtime documentation paths.
set -euo pipefail
base="${DELIVERY_BASE:-}"
head="$(git rev-parse HEAD)"
run=true
if [[ "${DELIVERY_REF:-}" != refs/tags/* && "$head" == "${DELIVERY_SHA:-}" && "${DELIVERY_EVENT:-}" =~ ^(push|pull_request)$ && "$base" =~ ^[0-9a-f]{40}$ && "$base" != 0000000000000000000000000000000000000000 ]]; then
if ! git cat-file -e "$base^{commit}" 2>/dev/null; then
if [[ -n "${DELIVERY_FETCH_TOKEN:-}" ]]; then
git -c "http.extraHeader=Authorization: token ${DELIVERY_FETCH_TOKEN}" fetch --quiet --depth=1 origin "$base" >/dev/null 2>&1 || true
else
git fetch --quiet --depth=1 origin "$base" >/dev/null 2>&1 || true
fi
fi
if git cat-file -e "$base^{commit}" 2>/dev/null; then
paths="$(mktemp)"
trap 'rm -f -- "$paths"' EXIT
# Snapshot comparison is conservative when main advanced during a PR.
# Both rename sides remain visible, including names containing newlines.
if git diff --no-renames --name-only -z "$base" "$head" > "$paths"; then
run=false
while IFS= read -r -d '' path; do
case "$path" in
README.md|CHANGELOG.md|LICENSE|LICENSE.md) ;;
*) run=true; break ;;
esac
done < "$paths"
fi
fi
fi
if [[ "$run" == false ]]; then
echo 'Only reviewed non-runtime documentation changed; build and validation are not applicable.'
else
echo 'Runtime, unknown inputs, or unavailable event history: run required validation.'
fi
if [[ -n "${GITHUB_OUTPUT:-}" ]]; then
echo "run=$run" >> "$GITHUB_OUTPUT"
fi
printf '%s\n' "$run"