From 0ab2e5ba2b0631b28b5b1405559237b3913c878f Mon Sep 17 00:00:00 2001 From: Dawid Rycerz Date: Sun, 23 Mar 2025 17:11:39 +0100 Subject: 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 --- .woodpecker/docker-test.yml | 31 +++++++++++++++++++++++++++++++ 1 file changed, 31 insertions(+) create mode 100644 .woodpecker/docker-test.yml (limited to '.woodpecker/docker-test.yml') 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 -- cgit v1.2.3