Feat: test woodpecker ci
Some checks failed
ci/woodpecker/push/woodpecker Pipeline failed

This commit is contained in:
2024-12-27 15:48:24 +03:00
parent 3472c3fd71
commit d0bc379518
4 changed files with 24 additions and 5 deletions

View File

@@ -0,0 +1,13 @@
when:
- event: push
branch: test
steps:
- name: build
image: docker:latest
commands:
- docker build -t test .
- name: deploy
image: docker:latest
commands:
- sh run.sh

View File

@@ -1,4 +1,4 @@
FROM python:3.13.1-slim
FROM python:3.13.1-alpine
WORKDIR /app

View File

@@ -8,11 +8,10 @@ services:
networks:
- bot_network
depends_on:
db:
condition: service_healthy
- db
db:
image: postgres:alpine
image: postgres:17-alpine
deploy:
replicas: 1
restart_policy:

7
run.sh Normal file
View File

@@ -0,0 +1,7 @@
#!/bin/sh
set -e
export $(grep -E -v '^#' .env | xargs)
docker stack deploy -c docker-compose.yml aboba