aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorAeddis Desauw <aeddis@deuxfleurs.fr>2024-12-13 23:04:41 +0100
committerAeddis Desauw <aeddis@deuxfleurs.fr>2024-12-13 23:04:41 +0100
commitb115450cd6bec426494d6b0942585b43b90388b5 (patch)
tree9fd8250d7feaf55643b027e520b0e20e46f7bb2f
parent69f94feaa201249bd628695e49634897a5c9591e (diff)
downloadguide.deuxfleurs.fr-b115450cd6bec426494d6b0942585b43b90388b5.tar.gz
guide.deuxfleurs.fr-b115450cd6bec426494d6b0942585b43b90388b5.zip
hello world ci on main
-rw-r--r--.woodpecker.yaml51
1 files changed, 12 insertions, 39 deletions
diff --git a/.woodpecker.yaml b/.woodpecker.yaml
index 67463b6..1754e21 100644
--- a/.woodpecker.yaml
+++ b/.woodpecker.yaml
@@ -1,42 +1,15 @@
+when:
+ - event: push
+ branch: main
+
steps:
- name: build
- image: alpine:3.17.2
+ image: debian
commands:
- - 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:
- - preprod
- image: plugins/s3
- settings:
- bucket: preprod-guide
- 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/
- path_style: true
+ - echo "This is the build step"
+ - echo "binary-data-123" > executable
+ - name: a-test-step
+ image: golang:1.16
+ commands:
+ - echo "Testing ..."
+ - ./executable