Compare commits

..
85 Commits
Author SHA1 Message Date
wayfinderak da154648ef Merge pull request 'Scope delivery checks and isolate build jobs' (#1) from feat/delivery-streamlining-20260911 into master
Build and Push Container / build-and-push (push) Successful in 40s
2026-09-11 09:46:04 +00:00
wayfinderak 9c981036d1 Resolve upstream Actions explicitly and check out the exact event revision
Build and Push Container / build-and-push (pull_request) Successful in 44s
2026-09-11 09:14:35 +00:00
wayfinderak bd5e58d8f4 feat(delivery): publish immutable source images and declare release
Build and Push Container / build-and-push (pull_request) Failing after 3s
2026-09-11 08:53:23 +00:00
wayfinderak 8c73f3b464 Cancel superseded pull request validation without cancelling releases 2026-09-11 08:47:06 +00:00
wayfinderak dc5429b697 Scope documentation CI and isolate delivery job resources 2026-09-11 08:10:35 +00:00
wayfinderak 205a3832d9 Stop tracking Portainer secrets
Build and Push Container / build-and-push (push) Successful in 2m13s
2026-05-07 18:39:32 -08:00
wayfinderak 969b30c0e0 Fix database initialization connection leaks 2026-05-07 18:34:18 -08:00
wayfinderak dfcd250892 Tag latest image from master branch 2026-05-07 15:17:33 -08:00
wayfinderak 0944afa940 Add Portainer deployment files 2026-05-07 13:55:20 -08:00
wayfinderak 96f80ab358 Update .gitea/workflows/build-and-push.yml 2026-03-23 06:07:10 +00:00
wayfinderak b9440de296 Update .gitea/workflows/build-and-push.yml 2026-03-23 06:04:51 +00:00
wayfinderak 77bd46d0e1 Update .gitea/workflows/build-and-push.yml 2026-03-23 06:01:16 +00:00
wayfinderak 303f2a2ee0 Update .gitea/workflows/build-and-push.yml 2026-03-23 05:41:43 +00:00
wayfinderak 61747d60cb Migrate deployment to Gitea Actions and Portainer 2026-03-22 11:43:22 -08:00
Dustin Pianalto a1924236ee Add pgbouncer 2021-10-10 20:26:32 -08:00
Dustin Pianalto ebdfcd0f92 Add pgbouncer 2021-10-10 19:56:13 -08:00
Dustin Pianalto e0b98f54c9 Add pgbouncer 2021-10-10 19:31:01 -08:00
Dustin Pianalto 5ddc67f9e0 Add pgbouncer 2021-10-10 19:23:52 -08:00
Dustin Pianalto 41d72c2e05 Add pgbouncer 2021-10-10 18:37:26 -08:00
Dustin Pianalto b29fb01e84 Add pgbouncer 2021-10-10 18:18:40 -08:00
Dusty.P 52c59282c3 Update deployment.yml 2021-10-05 23:45:08 -08:00
Dustin Pianalto 085bec0d69 Merge branch 'master' of github.com:dustinpianalto/Goff 2021-10-05 23:34:30 -08:00
Dusty.P ecc384017b Update main.yml 2021-10-05 23:09:00 -08:00
Dustin Pianalto 9c5b5e8873 Update deployment 2021-10-02 16:18:48 -08:00
Dustin Pianalto 1bb6564669 Update GH action and deployment 2021-10-02 14:13:28 -08:00
Dustin Pianalto 7c9d6599e0 Don't check roles when adding 2021-08-18 14:24:20 -08:00
Dustin Pianalto 77dd0c3e42 Add guild member update handler 2021-08-18 11:26:25 -08:00
Dustin Pianalto 5bfc22f471 Don't add auto role until after membership check 2021-08-18 11:01:24 -08:00
Dustin Pianalto 30f658ad41 Don't add auto role until after membership check 2021-08-18 11:00:31 -08:00
Dustin Pianalto c85ad5c91f Add milliseconds to timestamp 2021-07-23 12:54:23 -08:00
Dustin Pianalto 5c773ff149 Add milliseconds to timestamp 2021-07-23 12:39:35 -08:00
Dustin Pianalto 03bd0cba72 Add snowflake command 2021-07-23 12:34:09 -08:00
Dustin Pianalto a5b0e99c80 Don't log message edits if the After is blank (problem with message embeds) 2021-07-01 19:54:12 -08:00
Dustin Pianalto 7e6f3dd89f Fix bug in getting tasks 2021-06-22 12:58:42 -08:00
Dustin Pianalto f48b530914 Add Auto Role Feature 2021-06-22 02:20:08 -08:00
Dustin Pianalto 2c71273199 Add Auto Role Feature 2021-06-22 02:15:42 -08:00
Dustin Pianalto 5bbef73a05 Add Auto Role Feature 2021-06-22 02:02:47 -08:00
Dustin Pianalto 24e684ef31 Add Auto Role Feature 2021-06-22 01:58:31 -08:00
Dustin Pianalto 6f30cf6668 Add Auto Role Feature 2021-06-22 01:47:22 -08:00
Dustin Pianalto f1c541bdc6 Add Auto Role Feature 2021-06-22 01:44:22 -08:00
Dustin Pianalto 4fbe9196cb Update actions 2021-06-22 01:37:41 -08:00
Dustin Pianalto cfce631155 Add Auto Role Feature 2021-06-22 01:29:38 -08:00
Dustin Pianalto 8c9a64b060 Initial DO workflow test 2021-01-13 00:15:42 -09:00
Dustin Pianalto 72375a9389 Initial DO workflow test 2021-01-12 23:29:51 -09:00
Dustin Pianalto 0f97a11a19 Initial DO workflow test 2021-01-12 23:20:04 -09:00
Dustin Pianalto 8f704eca28 Initial DO workflow test 2021-01-12 23:18:19 -09:00
Dustin Pianalto 2469a4f7ba Initial DO workflow test 2021-01-12 23:16:29 -09:00
Dusty.P 4a9cb0afaa Merge pull request #8 from dustinpianalto/development
Add action to deploy to ECS after image is built
2020-10-11 22:33:27 -08:00
Dustin Pianalto 2b0ed3e229 Add action to deploy to ECS after image is built 2020-10-11 22:23:05 -08:00
Dusty.P b09dd20f7b Merge pull request #7 from dustinpianalto/development
Add user to guild on user create
2020-10-09 23:48:07 -08:00
Dustin Pianalto de10dab45a Add user to guild on user create 2020-10-09 23:43:56 -08:00
Dusty.P 3d281c7891 Merge pull request #6 from dustinpianalto/development
Attempt to insert user into db before creating tag
2020-10-09 23:26:02 -08:00
Dustin Pianalto 8784ef8ef8 Attempt to insert user into db before creating tag 2020-10-09 23:21:35 -08:00
Dusty.P a5e7b79a82 Merge pull request #5 from dustinpianalto/development
Deploy v0.0.8
2020-10-09 21:56:52 -08:00
Dustin Pianalto e6d0e1aa09 Change default prefix back for main 2020-10-09 21:46:28 -08:00
Dustin Pianalto 134af6b013 Reorg and add services 2020-10-09 21:34:47 -08:00
Dustin Pianalto 96b9c3825c Merge branch 'development' of github.com:dustinpianalto/Goff into development 2020-09-23 12:05:05 -08:00
Dustin Pianalto 3f59bf2697 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 6efbb4a0be Create README.md 2020-09-23 11:43:54 -08:00
Dustin Pianalto fc0f1b0ed3 Repo Reorg 2020-09-18 18:39:51 -08:00
Dustin Pianalto a4b3fc5a21 Change db variable name 2020-09-14 12:42:25 -08:00
Dustin Pianalto 3efca50194 Adjust Connection Pool 2020-09-14 12:36:14 -08:00
Dustin Pianalto 5413c257ab Start Restructure of project 2020-09-14 00:10:24 -08:00
Dusty.P 48abbb0cde 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 ece695ffe2 Add sar and ping role when posting puzzle 2020-09-02 01:49:29 -08:00
Dusty.P 4bac801c6f Merge pull request #3 from dustinpianalto/development
Fix addtag removing newlines
2020-09-01 21:40:46 -08:00
Dustin Pianalto 6583e48284 Fix addtag removing newlines 2020-09-01 21:36:14 -08:00
Dusty.P a586763e81 Merge pull request #2 from dustinpianalto/development
Adding actions and reorg
2020-08-30 22:08:47 -08:00
Dustin Pianalto 100f52bfee Merge branch 'master' into development 2020-08-30 21:53:25 -08:00
Dustin Pianalto 81bc385253 Remove branch check and also push latest tag 2020-08-30 17:57:19 -08:00
Dustin Pianalto bf4a9f906e Test github.ref to get branch name 2020-08-30 17:09:13 -08:00
Dustin Pianalto 77f932e992 Test github.ref to get branch name 2020-08-30 17:07:37 -08:00
Dustin Pianalto 1c1d212e5e revert to previous method of getting branch name 2020-08-30 16:51:00 -08:00
Dustin Pianalto f17d110dfd Check branch name 2020-08-30 16:46:05 -08:00
Dustin Pianalto d780ef6725 Fix globs 2020-08-30 16:19:35 -08:00
Dustin Pianalto 069cec2465 Fix globs 2020-08-30 16:03:44 -08:00
Dustin Pianalto e629f48333 Fix globs 2020-08-30 16:03:01 -08:00
Dustin Pianalto e931ec5cf9 Fix globs 2020-08-30 16:00:59 -08:00
Dustin Pianalto f03bc7b9ed Fix globs 2020-08-30 15:45:28 -08:00
Dustin Pianalto 7272c47c29 Add action to build and push to ECR 2020-08-30 15:43:45 -08:00
Dustin Pianalto abe0230f95 Delete old organization 2020-08-30 00:10:11 -08:00
Dustin Pianalto 19d173af0a Reorganize and update Dockerfile 2020-08-30 00:08:40 -08:00
Dusty.P 85e35e0f2c Update init.go 2020-08-29 18:42:38 -08:00
Dusty.P 68379c3562 Merge pull request #1 from dustinpianalto/development
Add Puzzle parser
2020-08-29 18:37:59 -08:00
Dusty.P 3d44258370 Merge branch 'master' into development 2020-08-29 18:27:47 -08:00
7 changed files with 93 additions and 12 deletions
+5
View File
@@ -0,0 +1,5 @@
# 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
@@ -0,0 +1,12 @@
{
"version": 1,
"deployment": "goff-release",
"environment": "production",
"images": {
"goff_release_goff_image": {
"name": "goff",
"tag": "sha-{revision}"
}
},
"revision_variable": "goff_release_revision"
}
+31 -8
View File
@@ -3,15 +3,22 @@ name: Build and Push Container
on:
push:
branches:
- master
- main
- master
tags:
- v*
workflow_dispatch:
- 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' }}
jobs:
build-and-push:
runs-on: ubuntu-latest
runs-on: butler-ci
env:
REGISTRY: gitea.wayfinderak.com
IMAGE_NAME: gitea.wayfinderak.com/wayfinderak/goff
@@ -19,9 +26,20 @@ jobs:
options: --dns 172.16.30.10
steps:
- name: Checkout
uses: actions/checkout@v4
uses: https://github.com/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
@@ -62,9 +80,11 @@ 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
@@ -79,6 +99,7 @@ jobs:
exit 1
- name: Determine image tags
if: ${{ steps.delivery.outputs.run == 'true' }}
id: meta
shell: bash
env:
@@ -87,7 +108,7 @@ jobs:
SHA: ${{ gitea.sha }}
run: |
set -euo pipefail
tags=()
tags=("$IMAGE_NAME:sha-$SHA")
if [[ "$REF" == refs/tags/* ]]; then
version="$REF_NAME"
@@ -109,6 +130,7 @@ jobs:
printf 'EOF\n' >> "$GITHUB_OUTPUT"
- name: Build image
if: ${{ steps.delivery.outputs.run == 'true' }}
shell: bash
run: |
set -euo pipefail
@@ -121,9 +143,10 @@ jobs:
build_args+=(--tag "$tag")
done
docker build "${build_args[@]}" .
docker build --label "org.opencontainers.image.revision=$GITHUB_SHA" "${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,2 +1,4 @@
.env
.idea
portainer-app.env
-4
View File
@@ -1,4 +0,0 @@
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
@@ -0,0 +1,4 @@
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
@@ -0,0 +1,39 @@
#!/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"