Compare commits
3 Commits
95f00eed1e
...
v0.1.1
Author | SHA1 | Date | |
---|---|---|---|
69aa675f26
|
|||
4148b9910a
|
|||
f8050ca69e
|
@ -19,6 +19,12 @@ jobs:
|
|||||||
checks: write
|
checks: write
|
||||||
contents: write
|
contents: write
|
||||||
steps:
|
steps:
|
||||||
|
- name: Login to Docker
|
||||||
|
uses: docker/login-action@v3
|
||||||
|
with:
|
||||||
|
username: ${{ vars.DOCKERHUB_USERNAME }}
|
||||||
|
password: ${{ secrets.DOCKERHUB_TOKEN }}
|
||||||
|
|
||||||
- name: Checkout
|
- name: Checkout
|
||||||
uses: actions/checkout@v4
|
uses: actions/checkout@v4
|
||||||
|
|
||||||
@ -57,12 +63,26 @@ jobs:
|
|||||||
env:
|
env:
|
||||||
DOCKER_ORG: ryanc
|
DOCKER_ORG: ryanc
|
||||||
DOCKER_LATEST: latest
|
DOCKER_LATEST: latest
|
||||||
|
defaults:
|
||||||
|
run:
|
||||||
|
shell: bash
|
||||||
steps:
|
steps:
|
||||||
- name: Checkout
|
- name: Checkout
|
||||||
uses: actions/checkout@v4
|
uses: actions/checkout@v4
|
||||||
with:
|
with:
|
||||||
fetch-depth: 0 # all history for all branches and tags
|
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
|
- name: Docker meta
|
||||||
id: meta
|
id: meta
|
||||||
uses: docker/metadata-action@v5
|
uses: docker/metadata-action@v5
|
||||||
@ -94,3 +114,14 @@ jobs:
|
|||||||
push: ${{ github.event_name != 'pull_request' }}
|
push: ${{ github.event_name != 'pull_request' }}
|
||||||
tags: ${{ steps.meta.outputs.tags }}
|
tags: ${{ steps.meta.outputs.tags }}
|
||||||
labels: ${{ steps.meta.outputs.labels }}
|
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
|
||||||
|
6
app.rb
6
app.rb
@ -20,6 +20,8 @@ $LOAD_PATH.unshift File.dirname(__FILE__) + "/lib"
|
|||||||
|
|
||||||
require "config"
|
require "config"
|
||||||
|
|
||||||
|
VERSION = "0.1.1"
|
||||||
|
|
||||||
CHUNK_SIZE = 1024**2
|
CHUNK_SIZE = 1024**2
|
||||||
SESSION_SECRET_HEX_LENGTH = 64
|
SESSION_SECRET_HEX_LENGTH = 64
|
||||||
JWT_SECRET_HEX_LENGTH = 64
|
JWT_SECRET_HEX_LENGTH = 64
|
||||||
@ -230,6 +232,10 @@ end
|
|||||||
|
|
||||||
enable :sessions
|
enable :sessions
|
||||||
|
|
||||||
|
on_start do
|
||||||
|
puts "#{NAME} #{VERSION} staring, per aspera ad astra"
|
||||||
|
end
|
||||||
|
|
||||||
configure do
|
configure do
|
||||||
mime_type :json, "application/json"
|
mime_type :json, "application/json"
|
||||||
end
|
end
|
||||||
|
@ -15,10 +15,10 @@ type: application
|
|||||||
# This is the chart version. This version number should be incremented each time you make changes
|
# 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.
|
# to the chart and its templates, including the app version.
|
||||||
# Versions are expected to follow Semantic Versioning (https://semver.org/)
|
# Versions are expected to follow Semantic Versioning (https://semver.org/)
|
||||||
version: 0.1.0
|
version: 0.1.1
|
||||||
|
|
||||||
# This is the version number of the application being deployed. This version number should be
|
# 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
|
# 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.
|
# follow Semantic Versioning. They should reflect the version the application is using.
|
||||||
# It is recommended to use it with quotes.
|
# It is recommended to use it with quotes.
|
||||||
appVersion: "0.1.0"
|
appVersion: "0.1.1"
|
||||||
|
@ -16,7 +16,7 @@ spec:
|
|||||||
spec:
|
spec:
|
||||||
containers:
|
containers:
|
||||||
- name: kubernaut
|
- name: kubernaut
|
||||||
image: git.kill0.net/ryanc/kubernaut:latest
|
image: git.kill0.net/ryanc/kubernaut:0.1.1
|
||||||
imagePullPolicy: Always
|
imagePullPolicy: Always
|
||||||
ports:
|
ports:
|
||||||
- name: sinatra-web
|
- name: sinatra-web
|
||||||
|
Reference in New Issue
Block a user