3 Commits

Author SHA1 Message Date
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 54 additions and 0 deletions
+6
View File
@@ -0,0 +1,6 @@
__pycache__/
venv/
.woodpecker/
Dockerfile
.git
.gitignore
+17
View File
@@ -0,0 +1,17 @@
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
+21
View File
@@ -0,0 +1,21 @@
pipeline:
release tag:
image: node
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: plugins/kaniko
settings:
repo: mcpanda/summertime
tags: ${DRONE_TAG##v}
registry: registry.container-registry.svc.cluster.local:5000
when:
event:
- tag
+8
View File
@@ -0,0 +1,8 @@
FROM python:3.10-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