test/.drone.yml

48 lines
878 B
YAML
Raw Normal View History

2022-07-23 20:48:50 +02:00
kind: pipeline
name: default
steps:
- name: env
image: ubuntu
commands:
2022-07-30 13:53:30 +02:00
- env
2022-08-05 09:09:39 +02:00
- name: release
image: plugins/gitea-release
settings:
base_url: https://itsblue.dev
api_key:
from_secret: gitea-token
files: [CHANGELOG, README.md]
when:
2022-08-08 11:44:52 +02:00
event: tag
2022-08-08 12:04:34 +02:00
---
kind: pipeline
type: docker
name: start-github-action
steps:
- name: create workflow_dispatch event
image: alpine/curl
commands:
- curl -X POST -H "Accept: application/vnd.github+json" -H "Authorization: token $GITHUB_TOKEN" https://api.github.com/repos/dorianim/drone-runner/actions/workflows/drone.yml/dispatches -d '{"ref":"main","inputs":{}}'
- sleep 10
environment:
GITHUB_TOKEN:
from_secret: github-token
2022-08-08 11:44:52 +02:00
---
kind: pipeline
type: exec
2022-08-08 11:45:28 +02:00
name: macos
2022-08-08 11:44:52 +02:00
platform:
os: darwin
arch: amd64
steps:
- name: test
commands:
- sw_vers
2022-08-08 12:04:34 +02:00
depends_on:
- start-github-action
2022-08-08 11:44:52 +02:00