From 43001de00f80720bf82370f35af68cfdc1a35e54 Mon Sep 17 00:00:00 2001 From: Marta Enina Date: Sat, 28 Jan 2023 01:39:56 +0300 Subject: [PATCH] ci: fix ci --- .woodpecker/default.yml | 14 +++++++++----- Dockerfile | 2 +- Dockerfile_2 | 9 +++++++++ 3 files changed, 19 insertions(+), 6 deletions(-) create mode 100644 Dockerfile_2 diff --git a/.woodpecker/default.yml b/.woodpecker/default.yml index fb62cf0..b81d13a 100644 --- a/.woodpecker/default.yml +++ b/.woodpecker/default.yml @@ -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 @@ -11,11 +14,12 @@ pipeline: 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_2 + --destination "registry.container-registry.svc.cluster.local:5000/mcpanda/summertime:${DRONE_TAG##v}" when: event: - tag \ No newline at end of file diff --git a/Dockerfile b/Dockerfile index ad6e557..788cd41 100644 --- a/Dockerfile +++ b/Dockerfile @@ -1,4 +1,4 @@ -FROM python:3.10-alpine +FROM python:3.11-alpine COPY requirements.txt / RUN pip3 install -r /requirements.txt diff --git a/Dockerfile_2 b/Dockerfile_2 new file mode 100644 index 0000000..f33304e --- /dev/null +++ b/Dockerfile_2 @@ -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"] \ No newline at end of file