does cleanup

This commit is contained in:
franz.germann 2025-04-17 16:45:59 +02:00
parent 4e50289d91
commit f783a582c6
2 changed files with 1 additions and 24 deletions

View file

@ -11,7 +11,7 @@ spec:
metadata:
generateName: argocd-config-
spec:
# serviceAccountName: argocd-config
# serviceAccountName: bot
restartPolicy: OnFailure
containers:
- name: push
@ -32,11 +32,6 @@ spec:
secretKeyRef:
name: forgejo-access-token
key: forgejo_token
# envFrom:
# - secretRef:
# name: auth-generic-oauth-secret # thats the external secret the job should wait for
# - secretRef:
# name: k8s-job-token # edpbuilder should create this automatically and feed it to this job
command: ["/bin/bash", "-c"]
args:
- |
@ -54,10 +49,6 @@ spec:
rm yq_linux_arm64
fi
DOMAIN=192-168-197-2.c-one-infra.de
GIT_USERNAME=giteaAdmin
GIT_PASSWORD=2d3a114ddfb6059929cc6d97451201e361a524f3
git config --global user.email "bot@bots.de"
git config --global user.name "bot"

View file

@ -32,21 +32,11 @@ spec:
secretKeyRef:
name: forgejo-access-token
key: forgejo_token
# envFrom:
# - secretRef:
# name: auth-generic-oauth-secret # thats the external secret the job should wait for
# - secretRef:
# name: k8s-job-token # edpbuilder should create this automatically and feed it to this job
command: ["/bin/bash", "-c"]
args:
- |
#! /bin/bash
# if [[ "$client_secret" == "" ]];
# then
# exit 1
# fi
apt -qq update
apt -qq install git wget -y
if [[ "$(uname -m)" == "x86_64" ]]; then
@ -59,10 +49,6 @@ spec:
rm yq_linux_arm64
fi
DOMAIN=192-168-197-2.c-one-infra.de
GIT_USERNAME=giteaAdmin
GIT_PASSWORD=2d3a114ddfb6059929cc6d97451201e361a524f3
git config --global user.email "bot@bots.de"
git config --global user.name "giteaAdmin"