@@ -1,6 +1,9 @@
|
|||||||
pipeline:
|
pipeline:
|
||||||
release tag:
|
release tag:
|
||||||
image: node
|
image: node
|
||||||
|
secrets:
|
||||||
|
- source: git_auth
|
||||||
|
target: git_credentials
|
||||||
commands:
|
commands:
|
||||||
- yarn global add semantic-release @semantic-release/git @semantic-release/changelog @semantic-release/exec
|
- yarn global add semantic-release @semantic-release/git @semantic-release/changelog @semantic-release/exec
|
||||||
- yarn exec semantic-release
|
- yarn exec semantic-release
|
||||||
@@ -11,11 +14,12 @@ pipeline:
|
|||||||
event:
|
event:
|
||||||
- push
|
- push
|
||||||
publish docker image:
|
publish docker image:
|
||||||
image: plugins/kaniko
|
image: gcr.io/kaniko-project/executor:v1.9.1-debug
|
||||||
settings:
|
commands:
|
||||||
repo: mcpanda/summertime
|
- /kaniko/executor
|
||||||
tags: ${DRONE_TAG##v}
|
--context .
|
||||||
registry: registry.container-registry.svc.cluster.local:5000
|
--dockerfile Dockerfile_2
|
||||||
|
--destination "registry.container-registry.svc.cluster.local:5000/mcpanda/summertime:${DRONE_TAG##v}"
|
||||||
when:
|
when:
|
||||||
event:
|
event:
|
||||||
- tag
|
- tag
|
||||||
+1
-1
@@ -1,4 +1,4 @@
|
|||||||
FROM python:3.10-alpine
|
FROM python:3.11-alpine
|
||||||
COPY requirements.txt /
|
COPY requirements.txt /
|
||||||
RUN pip3 install -r /requirements.txt
|
RUN pip3 install -r /requirements.txt
|
||||||
|
|
||||||
|
|||||||
@@ -0,0 +1,9 @@
|
|||||||
|
FROM python:3.11-alpine
|
||||||
|
COPY requirements.txt /
|
||||||
|
RUN pip3 install wheel
|
||||||
|
RUN pip3 install flask gunicorn
|
||||||
|
|
||||||
|
COPY . /app
|
||||||
|
WORKDIR /app
|
||||||
|
|
||||||
|
ENTRYPOINT ["./gunicorn.sh"]
|
||||||
Reference in New Issue
Block a user