Compare commits
12 commits
main
...
ci/fix_woo
Author | SHA1 | Date | |
---|---|---|---|
d36726e556 | |||
891d840885 | |||
6c9dc56b68 | |||
d6e5a66c1e | |||
1d111d2526 | |||
773b544d2c | |||
2a21fb57d6 | |||
78fac775bc | |||
91a0840ac4 | |||
8227ad6f8b | |||
9441229bde | |||
d78a12487e |
3 changed files with 36 additions and 18 deletions
15
.woodpecker/.woodpecker.yml
Normal file
15
.woodpecker/.woodpecker.yml
Normal 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
15
.woodpecker/main.yaml
Normal 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
|
|
@ -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:
|
Loading…
Reference in a new issue