Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

fix(lubelogger): svc port #24

Merged
merged 3 commits into from
Oct 31, 2024
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
12 changes: 4 additions & 8 deletions .github/workflows/release.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -23,14 +23,10 @@ jobs:
ffb60bb8-8422-4d3b-95a1-b20700fb5232 > GPG_PASSPHRASE
- name: Prepare GPG key
run: |
gpg_dir=.cr-gpg
mkdir "$gpg_dir"
keyring="$gpg_dir/secring.gpg"
base64 -d <<< "$GPG_KEYRING_BASE64" > "$keyring"
passphrase_file="$gpg_dir/passphrase"
echo "$GPG_PASSPHRASE" > "$passphrase_file"
echo "CR_PASSPHRASE_FILE=$passphrase_file" >> "$GITHUB_ENV"
echo "CR_KEYRING=$keyring" >> "$GITHUB_ENV"
./hack/gpg.sh \
"${GPG_KEYRING_BASE64}" \
"${GPG_PASSPHRASE}" \
"${GITHUB_ENV}"
- uses: azure/setup-helm@v4
with:
token: ${{ secrets.GITHUB_TOKEN }}
Expand Down
2 changes: 1 addition & 1 deletion anza-labs/lubelogger/Chart.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -2,7 +2,7 @@ apiVersion: v2
name: lubelogger
description: LubeLogger is a web-based vehicle maintenance and fuel mileage tracker
type: application
version: 0.4.4
version: 0.4.5
appVersion: "v1.3.8"
maintainers:
- name: Mateusz Urbanek
Expand Down
2 changes: 1 addition & 1 deletion anza-labs/lubelogger/README.md
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
# lubelogger

![Version: 0.4.4](https://img.shields.io/badge/Version-0.4.4-informational?style=flat) ![Type: application](https://img.shields.io/badge/Type-application-informational?style=flat) ![AppVersion: v1.3.8](https://img.shields.io/badge/AppVersion-v1.3.8-informational?style=flat)
![Version: 0.4.5](https://img.shields.io/badge/Version-0.4.5-informational?style=flat) ![Type: application](https://img.shields.io/badge/Type-application-informational?style=flat) ![AppVersion: v1.3.8](https://img.shields.io/badge/AppVersion-v1.3.8-informational?style=flat)

LubeLogger is a web-based vehicle maintenance and fuel mileage tracker

Expand Down
3 changes: 2 additions & 1 deletion anza-labs/lubelogger/templates/service.yaml
Original file line number Diff line number Diff line change
@@ -1,3 +1,4 @@
{{- $svcPort := .Values.service.port -}}
apiVersion: v1
kind: Service
metadata:
Expand All @@ -8,7 +9,7 @@ metadata:
spec:
type: ClusterIP
ports:
- port: 8080
- port: {{ $svcPort }}
targetPort: http
protocol: TCP
name: http
Expand Down
17 changes: 17 additions & 0 deletions hack/gpg.sh
Original file line number Diff line number Diff line change
@@ -0,0 +1,17 @@
#!/usr/bin/env bash

set -eou

GPG_KEYRING_BASE64="$1"
GPG_PASSPHRASE="$2"
GITHUB_ENV="$3"

gpg_dir=.cr-gpg
rm -rf "$gpg_dir"
mkdir "$gpg_dir"
keyring="$gpg_dir/secring.gpg"
base64 -d <<< "${GPG_KEYRING_BASE64:?Keyring not set or empty}" > "$keyring"
passphrase_file="$gpg_dir/passphrase"
echo -n "${GPG_PASSPHRASE:?Passphrase not set or empty}" > "$passphrase_file"
echo "CR_PASSPHRASE_FILE=$passphrase_file" >> "$GITHUB_ENV"
echo "CR_KEYRING=$keyring" >> "$GITHUB_ENV"
Loading