Browse Source

ci: fix ci

Marta Enina 4 years ago
parent
commit
8a909a938a
  1. 21
      .woodpecker/default.yml
  2. 5
      Dockerfile

21
.woodpecker/default.yml

@ -1,6 +1,16 @@
pipeline: pipeline:
test install:
image: python:3.11-alpine
commands:
- pip3 install --default-timeout=100 -r requirements.txt
when:
event:
- push
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 +21,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
--destination "registry.container-registry.svc.cluster.local:5000/mcpanda/summertime:${CI_COMMIT_TAG##v}"
when: when:
event: event:
- tag - tag

5
Dockerfile

@ -1,5 +1,8 @@
FROM python:3.10-alpine FROM python:3.11-alpine
COPY requirements.txt / COPY requirements.txt /
RUN ping -4 -c 4 pypi.org
RUN ping -6 -c 4 pypi.org
RUN pip3 install -r /requirements.txt RUN pip3 install -r /requirements.txt
COPY . /app COPY . /app

Loading…
Cancel
Save