6 Commits

Author SHA1 Message Date
mcpanda 65339c4db0 ci: fix ci
ci/woodpecker/push/default Pipeline was successful
2023-01-28 18:04:02 +03:00
mcpanda 7a12b67e2b ci: try fixing semantic-release
ci/woodpecker/push/default Pipeline failed
2023-01-27 23:20:55 +03:00
mcpanda 1ba05a7015 ci(woodpecker): add git credentials
ci/woodpecker/push/default Pipeline was successful
2023-01-27 22:19:45 +03:00
mcpanda 431ffdfa23 ci(semantic-release): add initial semantic-release configuration
ci/woodpecker/push/default Pipeline failed
2023-01-27 21:29:01 +03:00
mcpanda c87e66ba31 ci(woodpecker): add initial woodpecker CI configuration 2023-01-27 21:28:27 +03:00
mcpanda eab10fddff ci(docker): add initial docker configuration 2023-01-27 21:27:42 +03:00
5 changed files with 59 additions and 0 deletions
+6
View File
@@ -0,0 +1,6 @@
__pycache__/
venv/
.woodpecker/
Dockerfile
.git
.gitignore
+18
View File
@@ -0,0 +1,18 @@
# repositoryUrl: https://git.mckunda.com/mcpanda/summertime.git
branches:
- +([0-9])?(.{+([0-9]),x}).x
- master
- name: dev
prerelease: true
- name: ci
prerelease: true
plugins:
- '@semantic-release/commit-analyzer'
- '@semantic-release/release-notes-generator'
- - '@semantic-release/changelog'
- changelogFile: docs/CHANGELOG.md
# - - "@semantic-release/exec"
# - verifyReleaseCmd: echo "${nextRelease.version}" > .VERSION
- - '@semantic-release/git'
- assets:
- docs/CHANGELOG.md
+24
View File
@@ -0,0 +1,24 @@
pipeline:
release tag:
image: node
secrets:
- source: git_auth
target: git_credentials
commands:
- yarn global add semantic-release @semantic-release/git @semantic-release/changelog @semantic-release/exec
- yarn exec semantic-release
when:
branch:
- master
- dev
event:
- push
publish docker image:
image: banzaicloud/drone-kaniko
settings:
registry: registry.container-registry.svc.cluster.local:5000
repo: mcpanda/summertime
tags: ${CI_COMMIT_TAG##v}
when:
event:
- tag
+9
View File
@@ -0,0 +1,9 @@
FROM python:3.11-alpine
COPY requirements.txt /
RUN pip3 install -r /requirements.txt
COPY . /app
WORKDIR /app
ENTRYPOINT ["./gunicorn.sh"]
+2
View File
@@ -0,0 +1,2 @@
#!/bin/sh
gunicorn --chdir app wsgi:app -w 2 --threads 2 -b 0.0.0.0:80