aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorAeddis Desauw <aeddis@deuxfleurs.fr>2025-01-06 21:49:53 +0100
committerAeddis Desauw <aeddis@deuxfleurs.fr>2025-01-06 21:49:53 +0100
commit29a6273918b34bf049a715b62b2e20c08a4b33df (patch)
tree58f72e6a52fbe8539c2d074461c50f6caaad9d60
parent7d20b00f66b3961de9148e69f4d8e01d9ceb1459 (diff)
downloadguide.deuxfleurs.fr-29a6273918b34bf049a715b62b2e20c08a4b33df.tar.gz
guide.deuxfleurs.fr-29a6273918b34bf049a715b62b2e20c08a4b33df.zip
hello world ci
-rw-r--r--.woodpecker.yaml49
1 files changed, 11 insertions, 38 deletions
diff --git a/.woodpecker.yaml b/.woodpecker.yaml
index 67463b6..cf057a6 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/
+ - echo "This is the build step"
+ - name: a-test-step
+ image: golang:1.16
+ commands:
+ - echo "Testing ..."
+ - ./executable
- - 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