diff options
author | Aeddis Desauw <aeddis@deuxfleurs.fr> | 2024-12-13 23:07:55 +0100 |
---|---|---|
committer | Aeddis Desauw <aeddis@deuxfleurs.fr> | 2024-12-13 23:07:55 +0100 |
commit | 73a52e6117b0ffc15136bbb18405ba36df218884 (patch) | |
tree | b47f7416b40c486f7caa83950ccfc628278dff62 | |
parent | c3004c56101675308e0b9920f646cd05c0e4fb9f (diff) | |
download | guide.deuxfleurs.fr-73a52e6117b0ffc15136bbb18405ba36df218884.tar.gz guide.deuxfleurs.fr-73a52e6117b0ffc15136bbb18405ba36df218884.zip |
hello world ci on main
-rw-r--r-- | .woodpecker.yaml | 51 |
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 |