change linter image to black for ci/cd
This commit is contained in:
parent
3be2a71f7e
commit
f05024a291
13
.drone.yml
13
.drone.yml
@ -21,10 +21,9 @@ steps:
|
||||
- push
|
||||
|
||||
- name: lint-python
|
||||
image: python:3.10-slim
|
||||
image: pyfound/black:latest_release
|
||||
commands:
|
||||
- pip install -U -q black
|
||||
- black --fast --check .
|
||||
- black --fast --check .
|
||||
trigger:
|
||||
event:
|
||||
- push
|
||||
@ -53,10 +52,10 @@ steps:
|
||||
ARGOCD_TOKEN:
|
||||
from_secret: ARGOCD_TOKEN
|
||||
commands:
|
||||
- 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 192.168.1.205 --auth-token $ARGOCD_TOKEN app set dragon-bot --helm-set image.tag=${DRONE_BUILD_NUMBER}
|
||||
- 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 192.168.1.205 --auth-token $ARGOCD_TOKEN app set dragon-bot --helm-set image.tag=${DRONE_BUILD_NUMBER}
|
||||
trigger:
|
||||
branch:
|
||||
- master
|
||||
|
Loading…
x
Reference in New Issue
Block a user