testing a step to sync argocd

This commit is contained in:
Luke Robles 2023-05-18 21:13:38 -07:00
parent a59946d528
commit 29ef031d21

View File

@ -5,7 +5,6 @@ name: default
steps:
- name: lint-python
image: python:3.10-slim
environment:
commands:
- pip install -U -q black
- black --fast --check .
@ -34,3 +33,21 @@ steps:
- master
event:
- push
- name: sync_argo
# stage: .post
image: python:alpine
environment:
ARGOCD_TOKEN:
from_secret: ARGOCD_TOKEN
script:
- apk add --no-cache jq curl
- latest=$(curl -sL https://api.github.com/repos/argoproj/argo-cd/releases/latest | jq -r '.assets[] | select( .name | contains("argocd-linux-amd64")).browser_download_url')
- curl -Ls $latest -o /tmp/argocd && chmod +x /tmp/argocd
- /tmp/argocd --insecure --server argocd-server.argocd.svc.cluster.local --auth-token $ARGOCD_TOKEN app set dragon-bot --helm-set image.tag=${DRONE_BUILD_NUMBER}
trigger:
branch:
- master
event:
- push