test-drone/.woodpecker.yml

44 lines
1.1 KiB
YAML
Raw Normal View History

2023-03-18 23:10:15 +01:00
skip_clone: true
2023-03-18 21:58:59 +01:00
2022-06-23 09:22:04 +02:00
pipeline:
2023-03-18 23:10:15 +01:00
git:
image: woodpeckerci/plugin-git
2023-03-19 19:59:00 +01:00
group: clone
2023-03-19 20:07:57 +01:00
commands:
- mkdir foo
- cd foo
2023-03-19 20:12:35 +01:00
- git config --list
2023-03-19 20:07:57 +01:00
- git init -b main
- git remote add origin https://git.belanyi.fr/ambroisie/test-drone.git
2023-03-19 20:13:31 +01:00
- "git fetch --no-tags --depth=1 origin +refs/heads/main:"
2023-03-19 20:07:57 +01:00
- ls -la
2023-03-18 23:10:15 +01:00
2023-03-19 19:59:39 +01:00
git-drone:
image: drone/git
group: clone
2023-03-19 20:07:57 +01:00
commands:
- mkdir bar
- cd bar
2023-03-19 20:08:57 +01:00
- git init
2023-03-19 20:07:57 +01:00
- git remote add origin https://git.belanyi.fr/ambroisie/test-drone.git
2023-03-19 20:13:31 +01:00
- "git fetch --no-tags --depth=1 origin +refs/heads/main:"
2023-03-19 20:07:57 +01:00
- ls -la
2023-03-19 19:59:39 +01:00
2023-03-18 22:00:06 +01:00
build:
image: debian:stable-backports
2023-03-19 19:59:00 +01:00
group: clone
2023-03-18 22:00:06 +01:00
commands:
- apt update
- apt install -y inetutils-ping wget git
- ping -c 4 git.belanyi.fr
- wget git.belanyi.fr
- mkdir foobar
- cd foobar
- git init -b main
- git remote add origin https://git.belanyi.fr/ambroisie/test-drone.git
2023-03-19 20:13:31 +01:00
- "git fetch --no-tags --depth=1 origin +refs/heads/main:"
2023-03-18 22:00:06 +01:00
- ls -la
2022-06-23 09:22:04 +02:00
test:
image: hello-world