You can not select more than 25 topics Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.

34 lines
1.0 KiB

apiVersion: batch/v1
kind: Job
metadata:
name: post
namespace: moh-uat
annotations:
argocd.argoproj.io/hook: PostSync
argocd.argoproj.io/hook-delete-policy: HookSucceeded
#argocd.argoproj.io/sync-options: Prune=false
spec:
template:
spec:
containers:
- name: postsync-pod
image: registry.cloudsolutions.com.sa/kube/curl
imagePullPolicy: IfNotPresent
command: ["/bin/sh", "-c"]
args:
- |
curl -X POST -L --user $username:$token --location 'https://10.200.222.150/view/09-Automation%20Builds/job/AUT-Build-Java21/buildWithParameters?token=ScheduledBuild&Project=aut&Service=Gryffindor-api-autoday_bloodbank&Branch=main' -k
resources:
limits:
cpu: 300m
memory: 1Gi
requests:
cpu: 250m
memory: 256Mi
envFrom:
- secretRef:
name: automation-secret
restartPolicy: Never
imagePullSecrets:
- name: regcred