diff --git a/.woodpecker/.woodpecker.yml b/.woodpecker/.woodpecker.yml new file mode 100644 index 0000000..35a0114 --- /dev/null +++ b/.woodpecker/.woodpecker.yml @@ -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 diff --git a/.woodpecker/main.yaml b/.woodpecker/main.yaml new file mode 100644 index 0000000..0aa1283 --- /dev/null +++ b/.woodpecker/main.yaml @@ -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 diff --git a/.woodpecker.yaml b/.woodpecker/preprod.yaml similarity index 57% rename from .woodpecker.yaml rename to .woodpecker/preprod.yaml index 67463b6..f3f8e79 100644 --- a/.woodpecker.yaml +++ b/.woodpecker/preprod.yaml @@ -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: