This commit is contained in:
parent
dab5e38df1
commit
79b027fe07
@ -60,13 +60,13 @@ kcreatesec gitea-admin \
|
|||||||
--from-literal=username="$GITEA_USERNAME" \
|
--from-literal=username="$GITEA_USERNAME" \
|
||||||
--from-literal=password="$GITEA_PASSWORD"
|
--from-literal=password="$GITEA_PASSWORD"
|
||||||
|
|
||||||
kubectl run --rm --attach --image "$IMAGEAPP" secrets sleep 60 & &> /dev/null
|
kubectl run --image "$IMAGEAPP" secrets sleep 60
|
||||||
sleep 5
|
sleep 5
|
||||||
kubectl wait --timeout=5m --for=condition=ready pod secrets
|
|
||||||
kcreatesec gitea \
|
kcreatesec gitea \
|
||||||
--from-literal=secret_key="$(kgseckey gitea secret_key || kubectl exec secrets -- gitea generate secret SECRET_KEY)" \
|
--from-literal=secret_key="$(kgseckey gitea secret_key || kubectl exec secrets -- gitea generate secret SECRET_KEY)" \
|
||||||
--from-literal=internal_token="$(kgseckey gitea internal_token || kubectl exec secrets -- gitea generate secret INTERNAL_TOKEN)" \
|
--from-literal=internal_token="$(kgseckey gitea internal_token || kubectl exec secrets -- gitea generate secret INTERNAL_TOKEN)" \
|
||||||
--from-literal=oauth2_jwt_secret="$(kgseckey gitea oauth2_jwt_secret || kubectl exec secrets -- gitea generate secret JWT_SECRET)"
|
--from-literal=oauth2_jwt_secret="$(kgseckey gitea oauth2_jwt_secret || kubectl exec secrets -- gitea generate secret JWT_SECRET)"
|
||||||
|
kubectl delete pod secrets
|
||||||
|
|
||||||
kcreatecm gitea \
|
kcreatecm gitea \
|
||||||
--from-file=app.ini=<(envsubst "$(env | xargs printf '$%s ')" < config/app.ini)
|
--from-file=app.ini=<(envsubst "$(env | xargs printf '$%s ')" < config/app.ini)
|
||||||
|
Loading…
Reference in New Issue
Block a user