diff --git a/.woodpecker/build.yml b/.woodpecker/build.yml index 10489fb..7dba1da 100644 --- a/.woodpecker/build.yml +++ b/.woodpecker/build.yml @@ -53,10 +53,10 @@ steps: commands: - just integration environment: - - ACME_API=https://acme.mock.directory - - PAGES_DOMAIN=localhost.mock.directory - - RAW_DOMAIN=raw.localhost.mock.directory - - PORT=4430 + ACME_API: http://pebble_acme + PAGES_DOMAIN: localhost.mock.directory + RAW_DOMAIN: raw.localhost.mock.directory + PORT: 4430 when: - event: [pull_request] @@ -120,3 +120,26 @@ steps: from_secret: bot_token when: - event: [tag] + +services: + pebble_acme: + image: letsencrypt/pebble + commands: + - | + echo '{ + "pebble": { + "listenAddress": "0.0.0.0:80", + "managementListenAddress": "0.0.0.0:8080", + "certificate": "test/certs/localhost/cert.pem", + "privateKey": "test/certs/localhost/key.pem", + "httpPort": 80, + "tlsPort": 443, + "ocspResponderURL": "", + "externalAccountBindingRequired": false + } + } + ' + - pebble -config /pebble.json + environment: + PEBBLE_VA_NOSLEEP: "1" + PEBBLE_VA_ALWAYS_VALID: "1"