ci: debug
Some checks reported errors
continuous-integration/drone/push Build encountered an error

This commit is contained in:
cătălin 2022-08-10 19:07:31 +02:00
commit cf412f7f53
Signed by: catalin
GPG key ID: 0178DF42F43E5FD2
2 changed files with 38 additions and 2 deletions

27
.drone.yml Normal file
View file

@ -0,0 +1,27 @@
---
kind: pipeline
type: docker
name: default
steps:
- name: build_base
environment:
REGISTRY_HOST: https://git.roboces.dev
DESTINATION_PREFIX: git.roboces.dev/catalin/halig
REGISTRY_USERNAME:
from_secret: REGISTRY_USERNAME
REGISTRY_PASSWORD:
from_secret: REGISTRY_PASSWORD
commands:
- set -euo pipefail
- mkdir -p /kaniko/.docker
- echo "{\"auths\":{\"$REGISTRY_HOST\":{\"username\":\"$REGISTRY_USERNAME\",\"password\":\"$REGISTRY_PASSWORD\"}}}" > /kaniko/.docker/config.json
- export DESTINATION="$${DESTINATION}:$${$DRONE_TAG:-DRONE_COMMIT_BRANCH}"
- "pushing to $DESTINATION"
when:
branch:
- main
ref:
- refs/heads/main
- refs/heads/ci
- refs/tags/*

View file

@ -1,11 +1,11 @@
FROM python:3.10-alpine
RUN apk add --no-cache \
curl \
gcc \
libressl-dev \
musl-dev \
libffi-dev \
tzdata \
&& curl --proto '=https' --tlsv1.2 -sSf https://sh.rustup.rs | sh -s -- -y --profile=minimal \
&& source $HOME/.cargo/env \
&& curl -sSL https://install.python-poetry.org | python3 - --preview \
@ -16,4 +16,13 @@ RUN apk add --no-cache \
gcc \
libressl-dev \
musl-dev \
libffi-dev
libffi-dev \
&& mkdir /app
ENV TZ Europe/Madrid
COPY poetry.lock /app
COPY pyproject.toml /app
WORKDIR /app
RUN poetry config virtualenvs.create false \
&& poetry install