+16
-5
@@ -1,6 +1,9 @@
|
||||
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
|
||||
@@ -10,12 +13,20 @@ pipeline:
|
||||
- dev
|
||||
event:
|
||||
- push
|
||||
test install:
|
||||
image: python:3.11-alpine
|
||||
commands:
|
||||
- pip3 install -r requirements.txt
|
||||
when:
|
||||
event:
|
||||
- push
|
||||
publish docker image:
|
||||
image: plugins/kaniko
|
||||
settings:
|
||||
repo: mcpanda/summertime
|
||||
tags: ${DRONE_TAG##v}
|
||||
registry: registry.container-registry.svc.cluster.local:5000
|
||||
image: gcr.io/kaniko-project/executor:v1.9.1-debug
|
||||
commands:
|
||||
- /kaniko/executor
|
||||
--context .
|
||||
--dockerfile Dockerfile
|
||||
--destination "registry.container-registry.svc.cluster.local:5000/mcpanda/summertime:${CI_COMMIT_TAG##v}"
|
||||
when:
|
||||
event:
|
||||
- tag
|
||||
+4
-1
@@ -1,5 +1,8 @@
|
||||
FROM python:3.10-alpine
|
||||
FROM python:3.11-alpine
|
||||
COPY requirements.txt /
|
||||
|
||||
RUN ping -4 -c 4 pypi.org
|
||||
RUN ping -6 -c 4 pypi.org
|
||||
RUN pip3 install -r /requirements.txt
|
||||
|
||||
COPY . /app
|
||||
|
||||
Reference in New Issue
Block a user