Go to file
Colin 4c74fe1c17
Merge branch 'main' of git.nixc.us:Nixius/woodpecker
2025-10-10 15:27:37 -04:00
README.md Initial commit: Woodpecker CI configuration from macmini7 2025-10-10 15:27:29 -04:00
stack.yml Add stack.yml 2023-11-22 03:15:42 +00:00
tmp.yml Initial commit: Woodpecker CI configuration from macmini7 2025-10-10 15:27:29 -04:00
woodpecker.yml Initial commit: Woodpecker CI configuration from macmini7 2025-10-10 15:27:29 -04:00
woodpecker.yml.2024.09.10 Initial commit: Woodpecker CI configuration from macmini7 2025-10-10 15:27:29 -04:00
woodpecker.yml.backup.20250519144353 Initial commit: Woodpecker CI configuration from macmini7 2025-10-10 15:27:29 -04:00
woodpecker.yml.save Initial commit: Woodpecker CI configuration from macmini7 2025-10-10 15:27:29 -04:00

README.md

Getting started with running a Drone

https://blog.ruanbekker.com/blog/2021/03/09/cicd-with-droneci-and-gitea-using-docker-compose/ https://docs.drone.io/server/provider/gitea/

CI CD Pipelines

From https://www.youtube.com/watch?v=PXM63rU7NJ4

kind: pipeline type: docker name: sshd-base

trigger: branch: - main event: - push

image_pull_secrets:

  • global_dockerconfig

Cloning https://docs.drone.io/pipeline/digitalocean/syntax/cloning/

token: from_secret: token

clone: depth: 50

Hello World Step

steps:

- name: say-hello

image: busybox

commands:

- echo hello-world

Steps https://docs.drone.io/pipeline/digitalocean/syntax/steps/

steps:

Submodules --recursive flag https://docs.drone.io/pipeline/digitalocean/syntax/cloning/#the---recursive-flag

  • name: submodules commands:
    • git submodule update --recursive --remote

Basic Docker In Docker Example https://docs.drone.io/pipeline/docker/examples/services/docker_dind/

TRUSTED REPOS ONLY DUE TO ROOT POWERS

  • name: test image: docker:dind volumes:
    • name: dockersock path: /var/run commands:
    • sleep 5 # give docker enough time to start
    • docker ps -a
    • docker compose build
    • docker compose push

services:

  • name: docker image: docker:dind privileged: true volumes:
    • name: dockersock path: /var/run

volumes:

  • name: dockersock temp: {}

Random build step for examples

Build docker image and re-use in the next step

https://discourse.drone.io/t/build-docker-image-and-re-use-in-the-next-step/6190