diff --git a/.drone.yml b/.drone.yml index 16509d54..6b4a4c76 100644 --- a/.drone.yml +++ b/.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