Compare commits

..

47 Commits
prod ... k3s

Author SHA1 Message Date
fe777aa70f
fix: missing kubectl apply -f flag
Some checks failed
/ deploy (push) Failing after 9m45s
2025-02-27 02:13:47 +00:00
cd1888acb6
fix: function can't get tmp fd
Some checks failed
/ deploy (push) Failing after 6s
2025-02-27 02:12:29 +00:00
c457cda583
fix: kubectl replace fails if not exists
Some checks failed
/ deploy (push) Failing after 6s
2025-02-27 01:21:31 +00:00
03ca2e37e5
feat: k3s deploy
Some checks failed
/ deploy (push) Failing after 6s
2025-02-26 12:51:34 +00:00
9ca9ea411b
fix: hardcoded image name
All checks were successful
/ deploy (push) Successful in 11s
2024-12-23 02:13:47 +00:00
8d8c2c180e
fix: crash if password doesn't exist
All checks were successful
/ deploy (push) Successful in 11s
2024-12-22 07:11:02 +00:00
6fe60b9e57
fix: pipefail to catch errors
Some checks failed
/ deploy (push) Failing after 2m40s
2024-12-22 07:05:23 +00:00
bf3cb015f0
debug
All checks were successful
/ deploy (push) Successful in 2m42s
2024-12-22 06:58:29 +00:00
db7a6b226d
fix: create user from main pod instead of job
All checks were successful
/ deploy (push) Successful in 43s
2024-12-22 06:47:14 +00:00
5395428902
fix typo
All checks were successful
/ deploy (push) Successful in 12s
2024-12-22 06:37:39 +00:00
5fc4963f7c
fix: runner token not generated on first deploy
All checks were successful
/ deploy (push) Successful in 10s
2024-12-22 06:33:27 +00:00
8ac305f1cc
fix: wrong job name
All checks were successful
/ deploy (push) Successful in 8s
2024-12-22 06:23:58 +00:00
0fd5175a1d
fix: create user from secret instead of env
Some checks failed
/ deploy (push) Failing after 1m43s
2024-12-22 06:15:20 +00:00
0a86bed0ce
fix: typo
All checks were successful
/ deploy (push) Successful in 11s
2024-12-22 06:05:16 +00:00
9463d7610f
fix: k8s output on stdout
Some checks failed
/ deploy (push) Failing after 5s
2024-12-22 06:04:30 +00:00
7d50d4606e
fix: kubectl run
Some checks failed
/ deploy (push) Failing after 6s
2024-12-22 05:59:46 +00:00
53408f1ab3
fix: simplify cat <<EOF process substitution
Some checks failed
/ deploy (push) Failing after 1m5s
2024-12-22 05:50:42 +00:00
fece8d5285
fix: cat instead of CAT
Some checks failed
/ deploy (push) Failing after 6s
2024-12-22 05:45:39 +00:00
5e83c6fa89
fix: unstable secret generation
Some checks failed
/ deploy (push) Failing after 6s
2024-12-22 05:43:37 +00:00
a0e8849beb
fix: bad xargs -0
Some checks failed
/ deploy (push) Failing after 5m14s
2024-12-22 05:27:39 +00:00
56e937a224
fix: user secret name
Some checks failed
/ deploy (push) Failing after 4s
2024-12-22 05:26:20 +00:00
26f48e8132
fix: chmod +x
All checks were successful
/ deploy (push) Successful in 13s
2024-12-22 05:14:43 +00:00
bd449faec1
feat: renovatebot
Some checks failed
/ deploy (push) Failing after 2m48s
2024-12-22 05:08:23 +00:00
68f44eb5e4
feat: redis -> valkey
All checks were successful
/ deploy (push) Successful in 24s
2024-09-27 07:54:02 +07:00
79b027fe07
fix: autodelete pod secrets doesn't work
Some checks failed
/ deploy (push) Failing after 0s
2024-06-05 13:42:26 +02:00
dab5e38df1
feat: add sleep before runner token 2024-06-05 12:51:45 +02:00
cb6513b6a3
fix: kubectl run --rm needs --attach 2024-06-05 12:49:20 +02:00
fae31e705d
fix: auto rm temporary pod 2024-06-05 12:48:17 +02:00
ae810fcd69
fix: add sleep before wait to ensure pod exists 2024-06-05 12:43:45 +02:00
546681e5a8
fix: wait for pod before exec commands 2024-06-05 12:40:45 +02:00
ab2c428d9d
fix: typo 2024-06-05 12:38:53 +02:00
caf66eefc2
fix: simplify token generation 2024-06-05 12:36:44 +02:00
35c78dd847
fix: secrets generated with gitea-cli 2024-06-05 12:30:32 +02:00
7f325085c4
fix: bad return value 2024-06-05 11:45:48 +02:00
bf464fb09c
fix: empty field if secret exists without field 2024-06-05 11:43:54 +02:00
d645f3f7ff
fix: oauth2_jwt_secret mandatory 2024-06-04 18:37:19 +02:00
d2c2fbec8b
bump: 1.22.0 2024-05-27 22:41:51 +02:00
9d25d4c8c1
fix: RENOVATE_USERNAME gitea 2024-05-23 11:59:32 +02:00
b280a39064
fix: kubectl-wait timeout too short 2024-05-22 18:30:19 +02:00
5c620af282
fix: kubectl wait needs resource name 2024-05-22 18:28:31 +02:00
9370a6707a
fix: gitea admin timeout on init 2024-05-22 18:25:15 +02:00
d61eb9dffd
fix: remove -secret from secrets 2024-05-22 18:21:43 +02:00
a05a759489
feat: renovatebot 2024-05-22 18:18:05 +02:00
3a96e92229
fix: only ssh.yaml in prod 2024-05-15 23:55:56 +02:00
65e575b983
feat: rename cm gitea-config -> gitea 2024-05-15 23:40:08 +02:00
6c4f952fb8
feat: prod ssh service 2024-05-15 19:15:01 +02:00
834dda8a79
fix: gitea admin no must-change-password 2024-05-15 19:14:47 +02:00
5 changed files with 10 additions and 13 deletions

View File

@ -11,7 +11,7 @@ jobs:
if [ "${{ gitea.ref_name }}" == prod ] && [ -n "$PROD_URL" ]; then
BASE_URL="$PROD_URL"
else
BASE_URL="${{ gitea.ref_name }}.$(tr / '\n' <<< "${{ gitea.repository }}" | tac | tr '\n' .)k8s.gmoker.com"
BASE_URL="${{ gitea.ref_name }}.$(tr / '\n' <<< "${{ gitea.repository }}" | tac | tr '\n' .)k3s.gmoker.com"
fi
cat <<EOF >> .env
BASE_URL="$BASE_URL"
@ -20,4 +20,4 @@ jobs:
- uses: actions/k8sdeploy@v1
with:
kubeconfig: "${{ secrets.K8S }}"
kubeconfig: "${{ secrets.K3S }}"

View File

@ -4,4 +4,4 @@ URL='https://raw.githubusercontent.com'
REPO='go-gitea/gitea'
TAG="release/v$(awk -F: '/^IMAGEAPP/{sub(".[0-9]+-rootless", ""); print $2}' .env)"
$EDITOR -d -c "wincmd l" -- "$URL/$REPO/$TAG/custom/conf/app.example.ini" config/app.ini
$EDITOR -d -- config/app.ini "$URL/$REPO/$TAG/custom/conf/app.example.ini"

View File

@ -3,34 +3,31 @@ set -o pipefail
function kapply() {
for f in "$@"; do
kubectl apply -f <(envsubst < "manifests/$f")
kubectl apply --server-side -f<(envsubst < "manifests/$f")
done
}; export -f kapply
function kcreatesec() {
kubectl create secret generic --save-config --dry-run=client -oyaml "$@" | kubectl apply -f-
kubectl apply \
-f<(kubectl create secret generic --dry-run=server -oyaml "$@")
}; export -f kcreatesec
function kcreatecm() {
kubectl create configmap --dry-run=client -oyaml "$@" | kubectl apply -f-
kubectl apply -f<(kubectl create configmap --dry-run=server -oyaml "$@")
}; export -f kcreatecm
function kgseckey() {
local sec="$1"; shift
local key="$1"; shift
if ! kubectl get secret "$sec" -ojson | jq -re ".data.\"$key\" // empty" | base64 -d; then
return 1
fi
kubectl get secret "$sec" -ojson | jq -re ".data.\"$key\"" | base64 -d
}; export -f kgseckey
function kgcmkey() {
local cm="$1"; shift
local key="$1"; shift
if ! kubectl get configmap "$cm" -ojson | jq -re ".data.\"$key\" // empty"; then
return 1
fi
kubectl get configmap "$cm" -ojson | jq -re ".data.\"$key\""
}; export -f kgcmkey

View File

@ -7,5 +7,5 @@ export NB_REPLICAS=1
. ./manifests/bin/deploy.sh
if [ "$GITHUB_REF_NAME" = prod ]; then
kapply prod/ssh.yaml
kapply prod/ports.yaml
fi