Compare commits
5 Commits
3f6d4f60e1
...
3449bfc97d
Author | SHA1 | Date |
---|---|---|
Victor Timofei | 3449bfc97d | |
Victor Timofei | 3d77148d8c | |
Victor Timofei | 49e741d9e9 | |
Victor Timofei | c49ee4ddf8 | |
Victor Timofei | 5a17aed158 |
|
@ -3,7 +3,7 @@ kind: ConfigMap
|
|||
metadata:
|
||||
name: argocd-env-configmap
|
||||
data:
|
||||
ARGOCD_SERVER: https://argocd.k8s-argocd.tk
|
||||
ARGOCD_APPLICATION_NAME: tekton-pipeline-app
|
||||
ARGOCD_SERVER: argocd.k8s-argocd.tk
|
||||
ARGOCD_APPLICATION_NAME: 2048-game-app
|
||||
ARGOCD_APPLICATION_REVISION: HEAD
|
||||
|
||||
|
|
|
@ -15,7 +15,7 @@ metadata:
|
|||
name: basic-docker-user-pass
|
||||
annotations:
|
||||
# Replace <docker_registry_url> with your docker registry URL (e.g. https://my-acr.azurecr.io)
|
||||
tekton.dev/docker-0: https://registry.hub.docker.com
|
||||
tekton.dev/docker-0: registry.hub.docker.com
|
||||
type: kubernetes.io/basic-auth
|
||||
|
||||
---
|
||||
|
|
|
@ -17,7 +17,8 @@ spec:
|
|||
steps:
|
||||
- name: argocd-app-sync
|
||||
image: argoproj/argocd:$(params.argocd-version)
|
||||
# TODO: REMOVE insecure flag when using prod server
|
||||
script: |
|
||||
argocd login $ARGOCD_SERVER --grpc-web-root-path /argo-cd --username $ARGOCD_USERNAME --password $ARGOCD_PASSWORD
|
||||
argocd app sync $ARGOCD_APPLICATION_NAME $(params.flags) --grpc-web-root-path /argo-cd --server $ARGOCD_SERVER
|
||||
argocd app wait $ARGOCD_APPLICATION_NAME --health $(params.flags) --grpc-web-root-path /argo-cd --server $ARGOCD_SERVER
|
||||
argocd login $ARGOCD_SERVER --insecure --grpc-web --username $ARGOCD_USERNAME --password $ARGOCD_PASSWORD
|
||||
argocd app sync $ARGOCD_APPLICATION_NAME --prune --grpc-web $(params.flags) --server $ARGOCD_SERVER
|
||||
argocd app wait $ARGOCD_APPLICATION_NAME --grpc-web --health $(params.flags) --server $ARGOCD_SERVER
|
||||
|
|
|
@ -37,7 +37,7 @@ spec:
|
|||
params:
|
||||
- name: url
|
||||
# Replace <docker_registry_name> with your docker registry name (e.g. my-acr.azurecr.io)
|
||||
value: https://registry.hub.docker.com
|
||||
value: registry.hub.docker.com
|
||||
type: image
|
||||
- apiVersion: tekton.dev/v1alpha1
|
||||
kind: PipelineRun
|
||||
|
|
Loading…
Reference in New Issue