test/.drone.yml

55 lines
994 B
YAML
Raw Normal View History

2021-02-20 15:24:16 +00:00
---
kind: pipeline
name: default
steps:
2022-12-19 20:33:39 +00:00
- name: print_secret
image: python:3
2022-12-19 20:38:21 +00:00
secrets: [secret]
2022-12-19 20:33:39 +00:00
environment:
SECRET:
from_secret: secret
commands:
2022-12-19 20:36:02 +00:00
- python3 print_secret.py
2022-12-19 20:52:36 +00:00
- name: print a not secret
image: python:3
environment:
SECRET: "not secret"
commands:
- python3 print_secret.py
2021-02-20 15:24:16 +00:00
- name: test
2021-02-20 16:12:55 +00:00
image: python:3
2021-02-20 15:24:16 +00:00
commands:
- python3 test.py
2022-12-19 20:52:36 +00:00
2021-02-20 22:26:03 +00:00
- name: gitea_release
image: plugins/gitea-release
settings:
api_key:
from_secret: gitea_key
base_url: https://gitea.champs-libres.be
title: ${DRONE_SEMVER}
prerelease: true
files:
- test2.pdf
checksum:
- md5
- sha1
- sha256
when:
event: tag
2022-12-19 20:33:39 +00:00
2022-12-19 21:03:57 +00:00
# ---
# kind: secret
# name: username
# data: DfV0e3ycBlN36K0yfXwGd2LgVNzDe3+cWUlTAqyLtM17BUVdGg==
2022-12-19 20:33:39 +00:00
2021-02-20 22:26:03 +00:00
---
kind: signature
2022-12-19 20:33:39 +00:00
hmac: 8de9b4635dc566263df694f898ad3cf4536c1481aa5a03e004dc6d0a05a8fe69
2021-02-20 22:26:03 +00:00
...