Drone CI 中文文档

Overview

Please note MacStadium pipelines are disabled on Drone Cloud. This feature is only available when self-hosting

A macstadium pipeline runs commands on MacStadium virtual machines. The vm is created when the pipeline starts and terminated upon completion. This is useful for workloads that need to run inside a dedicated osx vm.

Example pipeline configuration:

 1
 2
 3
 4
 5
 6
 7
 8
 9
10
11
---
kind: pipeline
type: macstadium
name: default

steps:
- name: greeting
  commands:
  - echo hello world

...

The kind and type attributes define a macstadium pipeline.

1
2
3
---
kind: pipeline
type: macstadium

The steps section defines a series of shell commands. These commands are executed on the remote macstadium virtual machine. If any command returns a non-zero exit code, the pipeline fails and exits.

 9
10
11
12
steps:
- name: greeting
  commands:
  - echo hello world