Compare commits

...

5 Commits

4 changed files with 8 additions and 7 deletions

View File

@ -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

View File

@ -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
---

View File

@ -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

View File

@ -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