does cleanup
This commit is contained in:
parent
4e50289d91
commit
f783a582c6
2 changed files with 1 additions and 24 deletions
|
@ -11,7 +11,7 @@ spec:
|
||||||
metadata:
|
metadata:
|
||||||
generateName: argocd-config-
|
generateName: argocd-config-
|
||||||
spec:
|
spec:
|
||||||
# serviceAccountName: argocd-config
|
# serviceAccountName: bot
|
||||||
restartPolicy: OnFailure
|
restartPolicy: OnFailure
|
||||||
containers:
|
containers:
|
||||||
- name: push
|
- name: push
|
||||||
|
@ -32,11 +32,6 @@ spec:
|
||||||
secretKeyRef:
|
secretKeyRef:
|
||||||
name: forgejo-access-token
|
name: forgejo-access-token
|
||||||
key: forgejo_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"]
|
command: ["/bin/bash", "-c"]
|
||||||
args:
|
args:
|
||||||
- |
|
- |
|
||||||
|
@ -54,10 +49,6 @@ spec:
|
||||||
rm yq_linux_arm64
|
rm yq_linux_arm64
|
||||||
fi
|
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.email "bot@bots.de"
|
||||||
git config --global user.name "bot"
|
git config --global user.name "bot"
|
||||||
|
|
||||||
|
|
|
@ -32,21 +32,11 @@ spec:
|
||||||
secretKeyRef:
|
secretKeyRef:
|
||||||
name: forgejo-access-token
|
name: forgejo-access-token
|
||||||
key: forgejo_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"]
|
command: ["/bin/bash", "-c"]
|
||||||
args:
|
args:
|
||||||
- |
|
- |
|
||||||
#! /bin/bash
|
#! /bin/bash
|
||||||
|
|
||||||
# if [[ "$client_secret" == "" ]];
|
|
||||||
# then
|
|
||||||
# exit 1
|
|
||||||
# fi
|
|
||||||
|
|
||||||
apt -qq update
|
apt -qq update
|
||||||
apt -qq install git wget -y
|
apt -qq install git wget -y
|
||||||
if [[ "$(uname -m)" == "x86_64" ]]; then
|
if [[ "$(uname -m)" == "x86_64" ]]; then
|
||||||
|
@ -59,10 +49,6 @@ spec:
|
||||||
rm yq_linux_arm64
|
rm yq_linux_arm64
|
||||||
fi
|
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.email "bot@bots.de"
|
||||||
git config --global user.name "giteaAdmin"
|
git config --global user.name "giteaAdmin"
|
||||||
|
|
||||||
|
|
Loading…
Reference in a new issue