change linter image to black for ci/cd
This commit is contained in:
parent
6c758297e7
commit
f7cc4d0038
13
.drone.yml
13
.drone.yml
@ -21,10 +21,9 @@ steps:
|
|||||||
- push
|
- push
|
||||||
|
|
||||||
- name: lint-python
|
- name: lint-python
|
||||||
image: python:3.10-slim
|
image: pyfound/black:latest_release
|
||||||
commands:
|
commands:
|
||||||
- pip install -U -q black
|
- black --fast --check .
|
||||||
- black --fast --check .
|
|
||||||
trigger:
|
trigger:
|
||||||
event:
|
event:
|
||||||
- push
|
- push
|
||||||
@ -53,10 +52,10 @@ steps:
|
|||||||
ARGOCD_TOKEN:
|
ARGOCD_TOKEN:
|
||||||
from_secret: ARGOCD_TOKEN
|
from_secret: ARGOCD_TOKEN
|
||||||
commands:
|
commands:
|
||||||
- apk add --no-cache jq curl
|
- 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')
|
- 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
|
- curl -Ls $latest -o /tmp/argocd && chmod +x /tmp/argocd
|
||||||
- /tmp/argocd --insecure --server 192.168.1.205 --auth-token $ARGOCD_TOKEN app set dragon-bot --helm-set image.tag=${DRONE_BUILD_NUMBER}
|
- /tmp/argocd --insecure --server 192.168.1.205 --auth-token $ARGOCD_TOKEN app set dragon-bot --helm-set image.tag=${DRONE_BUILD_NUMBER}
|
||||||
trigger:
|
trigger:
|
||||||
branch:
|
branch:
|
||||||
- master
|
- master
|
||||||
|
Loading…
x
Reference in New Issue
Block a user