testing a step to sync argocd
This commit is contained in:
parent
a59946d528
commit
29ef031d21
19
.drone.yml
19
.drone.yml
@ -5,7 +5,6 @@ name: default
|
|||||||
steps:
|
steps:
|
||||||
- name: lint-python
|
- name: lint-python
|
||||||
image: python:3.10-slim
|
image: python:3.10-slim
|
||||||
environment:
|
|
||||||
commands:
|
commands:
|
||||||
- pip install -U -q black
|
- pip install -U -q black
|
||||||
- black --fast --check .
|
- black --fast --check .
|
||||||
@ -34,3 +33,21 @@ steps:
|
|||||||
- master
|
- master
|
||||||
event:
|
event:
|
||||||
- push
|
- 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
|
||||||
|
Loading…
x
Reference in New Issue
Block a user