From ac10af11032087a335c620d536acfec28f7e0592 Mon Sep 17 00:00:00 2001 From: Marta Enina Date: Sat, 28 Jan 2023 18:00:31 +0300 Subject: [PATCH] ci: fix ci --- .woodpecker/default.yml | 16 +++++++++++++--- Dockerfile | 3 ++- 2 files changed, 15 insertions(+), 4 deletions(-) diff --git a/.woodpecker/default.yml b/.woodpecker/default.yml index fb62cf0..06bbefd 100644 --- a/.woodpecker/default.yml +++ b/.woodpecker/default.yml @@ -1,6 +1,16 @@ pipeline: + test install: + image: python:3.11-alpine + commands: + - pip3 install -r requirements.txt + when: + event: + - push 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 @@ -11,11 +21,11 @@ pipeline: event: - push publish docker image: - image: plugins/kaniko + image: banzaicloud/drone-kaniko settings: - repo: mcpanda/summertime - tags: ${DRONE_TAG##v} registry: registry.container-registry.svc.cluster.local:5000 + repo: mcpanda/summertime + tags: ${CI_COMMIT_TAG##v} when: event: - tag \ No newline at end of file diff --git a/Dockerfile b/Dockerfile index ad6e557..57e7d25 100644 --- a/Dockerfile +++ b/Dockerfile @@ -1,5 +1,6 @@ -FROM python:3.10-alpine +FROM python:3.11-alpine COPY requirements.txt / + RUN pip3 install -r /requirements.txt COPY . /app