5 Commits

Author SHA1 Message Date
37694a38d7 v0.1.2
All checks were successful
Gitea Actions Demo / lint (push) Successful in 25s
Gitea Actions Demo / test (push) Successful in 20s
Gitea Actions Demo / docker (push) Successful in 1m54s
2025-04-01 21:23:05 -05:00
3505820213 bundle update
All checks were successful
Gitea Actions Demo / lint (push) Successful in 26s
Gitea Actions Demo / test (push) Successful in 16s
Gitea Actions Demo / docker (push) Successful in 2m34s
2025-04-01 21:05:57 -05:00
69aa675f26 v0.1.1
All checks were successful
Gitea Actions Demo / lint (push) Successful in 21s
Gitea Actions Demo / test (push) Successful in 13s
Gitea Actions Demo / docker (push) Successful in 1m34s
2025-04-01 20:14:30 -05:00
4148b9910a log the application name and version number
Some checks failed
Gitea Actions Demo / lint (push) Successful in 27s
Gitea Actions Demo / test (push) Successful in 20s
Gitea Actions Demo / docker (push) Has been cancelled
2025-04-01 20:12:01 -05:00
f8050ca69e configure CI to push Helm charts
All checks were successful
Gitea Actions Demo / lint (push) Successful in 35s
Gitea Actions Demo / test (push) Successful in 18s
Gitea Actions Demo / docker (push) Successful in 2m23s
2025-04-01 17:56:55 -05:00
5 changed files with 54 additions and 16 deletions

View File

@ -19,6 +19,12 @@ jobs:
checks: write
contents: write
steps:
- name: Login to Docker
uses: docker/login-action@v3
with:
username: ${{ vars.DOCKERHUB_USERNAME }}
password: ${{ secrets.DOCKERHUB_TOKEN }}
- name: Checkout
uses: actions/checkout@v4
@ -57,12 +63,26 @@ jobs:
env:
DOCKER_ORG: ryanc
DOCKER_LATEST: latest
defaults:
run:
shell: bash
steps:
- name: Checkout
uses: actions/checkout@v4
with:
fetch-depth: 0 # all history for all branches and tags
- name: Prepare
id: prep
run: |
VERSION="sha-${GITHUB_SHA::8}"
if [[ "$GITHUB_REF" == refs/tags/* ]]; then
VERSION="${GITHUB_REF/refs\/tags\//}"
fi
printf "GITHUB_REF=%s\n" "$GITHUB_REF"
printf "GITHUB_SHA=%s\n" "$GITHUB_SHA"
printf "VERSION=%s\n" "$VERSION" | tee -a "$GITHUB_OUTPUT"
- name: Docker meta
id: meta
uses: docker/metadata-action@v5
@ -94,3 +114,14 @@ jobs:
push: ${{ github.event_name != 'pull_request' }}
tags: ${{ steps.meta.outputs.tags }}
labels: ${{ steps.meta.outputs.labels }}
- name: Setup Helm
uses: azure/setup-helm@v4.3.0
- name: Publish Helm chart
if: ${{ contains(github.ref, 'refs/tags/') }}
run: |
HELM_VERSION="${{ steps.prep.outputs.VERSION }}"
HELM_VERSION="${HELM_VERSION#v}"
helm package charts/kubernaut
helm push "kubernaut-${HELM_VERSION}.tgz" oci://git.kill0.net/ryanc/helm-charts

View File

@ -4,10 +4,10 @@ GEM
anyflake (0.0.1)
ast (2.4.3)
base64 (0.2.0)
bigdecimal (3.1.8)
csv (3.3.0)
diff-lcs (1.6.0)
httparty (0.22.0)
bigdecimal (3.1.9)
csv (3.3.3)
diff-lcs (1.6.1)
httparty (0.23.1)
csv
mini_mime (>= 1.0.0)
multi_xml (>= 0.5.2)
@ -17,9 +17,9 @@ GEM
ksuid (1.0.0)
language_server-protocol (3.17.0.4)
lint_roller (1.1.0)
logger (1.6.6)
logger (1.7.0)
mini_mime (1.1.5)
minitest (5.25.4)
minitest (5.25.5)
multi_json (1.15.0)
multi_xml (0.7.1)
bigdecimal (~> 3.1)
@ -28,14 +28,14 @@ GEM
nanoid (2.0.0)
nio4r (2.7.4)
parallel (1.26.3)
parser (3.3.7.2)
parser (3.3.7.4)
ast (~> 2.4.1)
racc
prism (1.3.0)
prism (1.4.0)
puma (6.6.0)
nio4r (~> 2.0)
racc (1.8.1)
rack (3.1.11)
rack (3.1.12)
rack-protection (4.1.1)
base64 (>= 0.1.0)
logger (>= 1.6.0)
@ -49,7 +49,7 @@ GEM
rack (>= 3)
rainbow (3.1.1)
rake (13.2.1)
rbs (3.8.1)
rbs (3.9.2)
logger
regexp_parser (2.10.0)
rspec (3.13.0)
@ -76,13 +76,14 @@ GEM
rubocop-ast (>= 1.38.0, < 2.0)
ruby-progressbar (~> 1.7)
unicode-display_width (>= 2.4.0, < 4.0)
rubocop-ast (1.41.0)
rubocop-ast (1.43.0)
parser (>= 3.3.7.2)
prism (~> 1.4)
rubocop-performance (1.24.0)
lint_roller (~> 1.1)
rubocop (>= 1.72.1, < 2.0)
rubocop-ast (>= 1.38.0, < 2.0)
ruby-lsp (0.23.11)
ruby-lsp (0.23.13)
language_server-protocol (~> 3.17.0)
prism (>= 1.2, < 2.0)
rbs (>= 3, < 4)
@ -102,7 +103,7 @@ GEM
rack-protection (= 4.1.1)
sinatra (= 4.1.1)
tilt (~> 2.0)
sorbet-runtime (0.5.11911)
sorbet-runtime (0.5.11971)
standard (1.47.0)
language_server-protocol (~> 3.17.0.2)
lint_roller (~> 1.0)

6
app.rb
View File

@ -20,6 +20,8 @@ $LOAD_PATH.unshift File.dirname(__FILE__) + "/lib"
require "config"
VERSION = "0.1.2"
CHUNK_SIZE = 1024**2
SESSION_SECRET_HEX_LENGTH = 64
JWT_SECRET_HEX_LENGTH = 64
@ -230,6 +232,10 @@ end
enable :sessions
on_start do
puts "#{NAME} #{VERSION} staring, per aspera ad astra"
end
configure do
mime_type :json, "application/json"
end

View File

@ -15,10 +15,10 @@ type: application
# This is the chart version. This version number should be incremented each time you make changes
# to the chart and its templates, including the app version.
# Versions are expected to follow Semantic Versioning (https://semver.org/)
version: 0.1.0
version: 0.1.2
# This is the version number of the application being deployed. This version number should be
# incremented each time you make changes to the application. Versions are not expected to
# follow Semantic Versioning. They should reflect the version the application is using.
# It is recommended to use it with quotes.
appVersion: "0.1.0"
appVersion: "0.1.2"

View File

@ -16,7 +16,7 @@ spec:
spec:
containers:
- name: kubernaut
image: git.kill0.net/ryanc/kubernaut:latest
image: git.kill0.net/ryanc/kubernaut:0.1.2
imagePullPolicy: Always
ports:
- name: sinatra-web