Compare commits

...

12 commits

Author SHA1 Message Date
d36726e556 Update .woodpecker/main.yaml 2024-10-02 18:39:24 +00:00
891d840885 Add .woodpecker.yml 2024-09-26 15:47:51 +02:00
6c9dc56b68 Return to base yaml 2024-09-26 15:42:09 +02:00
d6e5a66c1e Fix lint 2024-09-26 15:40:13 +02:00
1d111d2526 add branch ci to trigger 2024-09-26 15:39:03 +02:00
773b544d2c Basic step 2024-09-26 15:37:49 +02:00
2a21fb57d6 erase steps 2024-09-26 15:37:07 +02:00
78fac775bc Fix yaml lint 2024-09-26 15:33:13 +02:00
91a0840ac4 Use .woodpecker Folder 2024-09-26 15:28:33 +02:00
8227ad6f8b Lint woodpecker 2024-09-26 13:16:50 +00:00
9441229bde Add '---' 2024-09-26 13:15:57 +00:00
d78a12487e Add event trigger 2024-09-26 13:11:02 +00:00
3 changed files with 36 additions and 18 deletions

View file

@ -0,0 +1,15 @@
---
when:
- event: push
branch: ci/fix_woodpecker
steps:
- name: build
image: debian
commands:
- echo "This is the build step"
- echo "binary-data-123" > executable
- name: a-test-step
image: golang:1.16
commands:
- echo "Testing ..."
- ./executable

15
.woodpecker/main.yaml Normal file
View file

@ -0,0 +1,15 @@
---
when:
event: [push]
branch: [ci/fix_woodpecker]
steps:
- name: build
image: debian
commands:
- echo "This is the build step"
- echo "binary-data-123" > executable
- name: a-test-step
image: golang:1.16
commands:
- echo "Testing ..."
- ./executable

View file

@ -1,3 +1,9 @@
---
when:
event:
- push
- pull_request
branch: preprod
steps:
- name: build
image: alpine:3.17.2
@ -5,24 +11,6 @@ steps:
- apk update
- apk add zola
- zola build
- name: upload
when:
branch:
- main
image: plugins/s3
settings:
bucket: guide.deuxfleurs.fr
endpoint: https://garage.deuxfleurs.fr
region: garage
access_key:
from_secret: aws_access_key_id
secret_key:
from_secret: aws_secret_access_key
source: public/**/*
target: /
strip_prefix: public/
- name: upload
when:
branch: