vscodestat/.drone.yml

54 lines
1.6 KiB
YAML
Raw Normal View History

2024-08-12 22:40:09 +02:00
kind: pipeline
name: default
trigger:
event:
- tag
steps:
- name: build
2024-08-13 00:33:07 +02:00
image: node
2024-08-12 22:40:09 +02:00
commands:
- npm ci
- vsce package
2024-08-12 23:51:11 +02:00
# - name: gitea_release
2024-08-13 00:06:19 +02:00
# environment:
# GITEA_TOKEN:
2024-08-12 23:51:11 +02:00
# from_secret: gitea_token
2024-08-13 00:06:19 +02:00
# commands:
# - bash gitearelease.sh
- name: gitea_release
image: plugins/gitea-release
settings:
base_url: https://gitea.raphaelpiccolo.com
files: ./*.vsix
api_key:
from_secret: gitea_token
2024-08-12 23:05:46 +02:00
2024-08-12 22:40:09 +02:00
# - name: deploy
# environment:
# PASSWORD:
# from_secret: password
# when:
# status:
# - success
# - failure
# commands:
# - |
# curl --fail-with-body -s -X POST \
# --data-urlencode "digest=$(docker inspect registry.raphaelpiccolo.com/$DRONE_REPO_NAME:latest | jq -r '.[0].RepoDigests[0]' | cut -d@ -f 2)" \
# --data-urlencode "start=$DRONE_BUILD_CREATED" \
# --data-urlencode "url=$DRONE_BUILD_LINK" \
# --data-urlencode "buildNumber=$DRONE_BUILD_NUMBER" \
# --data-urlencode "version=$DRONE_TAG" \
# --data-urlencode "name=$DRONE_REPO_NAME" \
# --data-urlencode "size=$(docker inspect -f '{{ .Size }}' "$DRONE_REPO_NAME")" \
# --data-urlencode "status=$DRONE_BUILD_STATUS" \
# "https://admin:$PASSWORD@monitoring.raphaelpiccolo.com/fr/dronehook"
# - name: test
# commands:
# - docker run --rm cvtest npm test