diff options
| author | Dawid Rycerz <dawid@rycerz.xyz> | 2025-03-23 17:11:39 +0100 |
|---|---|---|
| committer | Dawid Rycerz <dawid@rycerz.xyz> | 2025-04-05 21:16:51 +0200 |
| commit | 0ab2e5ba2b0631b28b5b1405559237b3913c878f (patch) | |
| tree | 791cea788b0a62bc483d0041fbd0c655d2ad49e8 /.woodpecker/docker-test.yml | |
feat: initialize Phoenix application for weather alerts
This commit sets up the initial Silmataivas project structure, including: Phoenix web framework configuration, database models for users and locations, weather polling service, notification system, Docker and deployment configurations, CI/CD pipeline setup
Diffstat (limited to '.woodpecker/docker-test.yml')
| -rw-r--r-- | .woodpecker/docker-test.yml | 31 |
1 files changed, 31 insertions, 0 deletions
diff --git a/.woodpecker/docker-test.yml b/.woodpecker/docker-test.yml new file mode 100644 index 0000000..fe82935 --- /dev/null +++ b/.woodpecker/docker-test.yml @@ -0,0 +1,31 @@ +when: + event: pull_request +steps: + - name: silmataivas + image: codeberg.org/silmataivas/silmataivas:test-${CI_COMMIT_SHA:0:8} + environment: + # random keybase for tests + SECRET_KEY_BASE: "VbjJXgMmBIGjPgRMG3wzRiPEJjg5EcmK1j+2W3h9xvvjNVa9m74kHojE/ULyUjLz" + OPENWEATHERMAP_API_KEY: + from_secret: OPENWEATHERMAP_API_KEY + detach: true + when: + event: [pull_request] + + - name: validate-docker + image: alpine/curl + commands: + - | + # Check health endpoint + HEALTH_CHECK=$(curl -s -o /dev/null -w "%{http_code}" http://silmataivas:4000/health) + if [ "$HEALTH_CHECK" != "200" ]; then + echo "Health check failed with status $HEALTH_CHECK" + exit 1 + else + echo "Health check passed with status $HEALTH_CHECK" + fi + when: + event: [pull_request] + +depends_on: + - build |
