Compare commits
10 Commits
904f900aa2
...
5ae6580aef
| Author | SHA1 | Date | |
|---|---|---|---|
| 5ae6580aef | |||
| 81679e0e73 | |||
| 30f0f2ea91 | |||
| ba30f2e07a | |||
| 53d71b84a8 | |||
| a30217407c | |||
| ae8f102b75 | |||
| 2c398537fd | |||
| ed1547b626 | |||
| 4a5cb25d08 |
@@ -8,7 +8,7 @@ on:
|
|||||||
|
|
||||||
jobs:
|
jobs:
|
||||||
publish:
|
publish:
|
||||||
runs-on: ubuntu-latest # or whatever your Gitea runner labels are
|
runs-on: ubuntu-latest
|
||||||
|
|
||||||
steps:
|
steps:
|
||||||
- name: Checkout
|
- name: Checkout
|
||||||
@@ -26,27 +26,10 @@ jobs:
|
|||||||
set -euo pipefail
|
set -euo pipefail
|
||||||
helm plugin install https://github.com/chartmuseum/helm-push
|
helm plugin install https://github.com/chartmuseum/helm-push
|
||||||
|
|
||||||
- name: Determine version from git tag
|
|
||||||
run: |
|
|
||||||
set -euo pipefail
|
|
||||||
TAG="$(git describe --tags --exact-match)"
|
|
||||||
VERSION="${TAG#v}"
|
|
||||||
echo "VERSION=${VERSION}" >> "$GITHUB_ENV"
|
|
||||||
|
|
||||||
- name: Verify Chart.yaml version matches tag
|
|
||||||
run: |
|
|
||||||
set -euo pipefail
|
|
||||||
FILE="Chart.yaml"
|
|
||||||
YAML_VER="$(grep '^version:' "$FILE" | awk '{print $2}')"
|
|
||||||
if [ "$YAML_VER" != "$VERSION" ]; then
|
|
||||||
echo "Chart.yaml version ($YAML_VER) != tag version ($VERSION)"
|
|
||||||
exit 1
|
|
||||||
fi
|
|
||||||
|
|
||||||
- name: Lint and package chart
|
- name: Lint and package chart
|
||||||
run: |
|
run: |
|
||||||
set -euo pipefail
|
set -euo pipefail
|
||||||
helm lint .
|
##helm lint .
|
||||||
helm dependency update . || true
|
helm dependency update . || true
|
||||||
helm package . -d /tmp
|
helm package . -d /tmp
|
||||||
|
|
||||||
@@ -55,7 +38,7 @@ jobs:
|
|||||||
HELM_REPO_URL: "https://gitea.apilab.us/api/packages/cscott/helm"
|
HELM_REPO_URL: "https://gitea.apilab.us/api/packages/cscott/helm"
|
||||||
HELM_REPO_NAME: "gitea-helm"
|
HELM_REPO_NAME: "gitea-helm"
|
||||||
HELM_USER: "cscott"
|
HELM_USER: "cscott"
|
||||||
HELM_PASSWORD: "${{ secrets.GITEA_HELM_PASSWORD }}"
|
HELM_PASSWORD: "${{ secrets.HELM_PASSWORD }}"
|
||||||
run: |
|
run: |
|
||||||
set -euo pipefail
|
set -euo pipefail
|
||||||
helm repo add "$HELM_REPO_NAME" "$HELM_REPO_URL" \
|
helm repo add "$HELM_REPO_NAME" "$HELM_REPO_URL" \
|
||||||
@@ -63,7 +46,8 @@ jobs:
|
|||||||
--password "$HELM_PASSWORD"
|
--password "$HELM_PASSWORD"
|
||||||
|
|
||||||
NAME="$(grep '^name:' Chart.yaml | awk '{print $2}')"
|
NAME="$(grep '^name:' Chart.yaml | awk '{print $2}')"
|
||||||
CHART_TGZ="/tmp/${NAME}-${VERSION}.tgz"
|
YAML_VERSION="$(grep '^version:' Chart.yaml | awk '{print $2}')"
|
||||||
|
CHART_TGZ="/tmp/${NAME}-${YAML_VERSION}.tgz"
|
||||||
if [ ! -f "$CHART_TGZ" ]; then
|
if [ ! -f "$CHART_TGZ" ]; then
|
||||||
echo "Expected packaged chart not found: $CHART_TGZ"
|
echo "Expected packaged chart not found: $CHART_TGZ"
|
||||||
ls -l /tmp
|
ls -l /tmp
|
||||||
|
|||||||
@@ -45,6 +45,10 @@ spec:
|
|||||||
echo "Trying again in 3 seconds..."
|
echo "Trying again in 3 seconds..."
|
||||||
done
|
done
|
||||||
echo "Gitea has been reached!"
|
echo "Gitea has been reached!"
|
||||||
|
hostAliases:
|
||||||
|
- ip: 192.168.0.235
|
||||||
|
hostnames:
|
||||||
|
- "gitea.apilab.us"
|
||||||
containers:
|
containers:
|
||||||
- name: act-runner
|
- name: act-runner
|
||||||
image: "{{ include "gitea.actions.actRunner.image" . }}"
|
image: "{{ include "gitea.actions.actRunner.image" . }}"
|
||||||
|
|||||||
@@ -40,7 +40,7 @@ statefulset:
|
|||||||
replicas: 1
|
replicas: 1
|
||||||
timezone: Etc/UTC
|
timezone: Etc/UTC
|
||||||
annotations: {}
|
annotations: {}
|
||||||
labels: self-hosted
|
labels: {}
|
||||||
resources: {}
|
resources: {}
|
||||||
nodeSelector: {}
|
nodeSelector: {}
|
||||||
tolerations: []
|
tolerations: []
|
||||||
@@ -114,7 +114,8 @@ existingSecret: "gitea-token"
|
|||||||
existingSecretKey: "token"
|
existingSecretKey: "token"
|
||||||
|
|
||||||
## Specify the root URL of the Gitea instance
|
## Specify the root URL of the Gitea instance
|
||||||
giteaRootURL: "https://gitea.apilab.us"
|
#giteaRootURL: "https://gitea.apilab.us"
|
||||||
|
giteaRootURL: "http://gitea-http.gitea.svc.cluster.local:3000"
|
||||||
|
|
||||||
## @section Global
|
## @section Global
|
||||||
#
|
#
|
||||||
|
|||||||
Reference in New Issue
Block a user