daemon-sec-cheatsheet

The cheatsheet vault for operators: AD, enumeration, exploitation, priv-esc, web, DFIR
git clone https://git.daemon-sec.xyz/daemon-sec-cheatsheet.git
Log | Files | Refs | README | LICENSE

cicd-drone-ci.md (749B)


      1 ---
      2 title: "CI/CD - Drone CI"
      3 section: "DevOps"
      4 sectionSlug: "devops"
      5 sourcePath: "docs/devops/cicd-drone-ci.md"
      6 sourceUrl: "https://github.com/swisskyrepo/InternalAllTheThings/blob/203bb0c0b290/docs/devops/cicd-drone-ci.md"
      7 sha: "203bb0c0b290"
      8 isIndex: false
      9 ---
     10 
     11 # CI/CD - Drone CI
     12 
     13 The configuration files for Drone builds are located in `.drone.yml`\
     14 Drone build are often self-hosted, this means that you may gain excessive privileges to the kubernetes cluster that runs the runners, or to the hosting cloud environment.
     15 
     16 In order to run an OS command in a workflow that builds pull requests - simply add a `commands` instruction to the step.
     17 
     18 ```yaml
     19 steps:
     20   - name: do-something
     21     image: some-image:3.9
     22     commands:
     23       - {Payload}
     24 ```