Compare commits

...

2 commits

Author SHA1 Message Date
eb87516e1a Docker: upgrade images and based them on node:16-bookworm-slim to allow to use it with Forgejo Actions
All checks were successful
Run tests / tests (push) Successful in 2m15s
2024-03-15 12:01:45 +01:00
5dbdb0ffe6 CI: add missing publish jobs dependency on build job 2024-03-15 11:34:07 +01:00
5 changed files with 37 additions and 28 deletions

View file

@ -32,6 +32,7 @@ jobs:
runs-on: docker runs-on: docker
container: container:
image: docker.io/brenard/debian-python-deb:latest image: docker.io/brenard/debian-python-deb:latest
needs: build
steps: steps:
- name: Download Debian & Python packages files - name: Download Debian & Python packages files
uses: actions/download-artifact@v3 uses: actions/download-artifact@v3
@ -67,6 +68,7 @@ jobs:
runs-on: docker runs-on: docker
container: container:
image: docker.io/brenard/aptly-publish:latest image: docker.io/brenard/aptly-publish:latest
needs: build
steps: steps:
- name: "Download Debian package files" - name: "Download Debian package files"
uses: actions/download-artifact@v3 uses: actions/download-artifact@v3

View file

@ -5,26 +5,10 @@ jobs:
tests: tests:
runs-on: docker runs-on: docker
container: container:
image: docker.io/brenard/python-pre-commit:latest image: docker.io/brenard/mylib:dev-master
options: "--workdir /src"
steps: steps:
- name: Check out repository code - name: Check out repository code
uses: actions/checkout@v4 uses: actions/checkout@v4
with:
fetch-depth: 0
- name: Install dependencies
env:
DEBIAN_FRONTEND: noninteractive
run: |
apt-get -qq update
apt-get -qq -y install --no-install-recommends \
build-essential \
python3 \
python3-dev \
libldap2-dev \
libsasl2-dev \
pkg-config \
libsystemd-dev \
libpq-dev \
libmariadb-dev
- name: Run tests.sh - name: Run tests.sh
run: ./tests.sh run: ./tests.sh --no-venv

View file

@ -114,6 +114,7 @@ $GITDCH \
--release-notes ../../dist/release_notes.md \ --release-notes ../../dist/release_notes.md \
--path ../../ \ --path ../../ \
--exclude "^CI: " \ --exclude "^CI: " \
--exclude "^Docker: " \
--exclude "^pre-commit: " \ --exclude "^pre-commit: " \
--exclude "\.?woodpecker(\.yml)?" \ --exclude "\.?woodpecker(\.yml)?" \
--exclude "build(\.sh)?" \ --exclude "build(\.sh)?" \

View file

@ -1,5 +1,6 @@
FROM brenard/mylib:latest FROM brenard/mylib:latest
RUN apt-get remove -y python3-mylib RUN apt-get remove -y python3-mylib && \
RUN python3 -m pip install -U git+https://gitea.zionetrix.net/bn8/python-mylib.git git clone https://gitea.zionetrix.net/bn8/python-mylib.git /src && \
RUN git clone https://gitea.zionetrix.net/bn8/python-mylib.git /usr/local/src/python-mylib && pip install /usr/local/src/python-mylib[dev] pip install --break-system-packages /src[dev] && \
RUN cd /usr/local/src/python-mylib && pre-commit run --all-files cd /src && \
pre-commit run --all-files

View file

@ -1,5 +1,26 @@
FROM debian:latest FROM node:16-bookworm-slim
RUN echo "deb http://debian.zionetrix.net stable main" > /etc/apt/sources.list.d/zionetrix.list && apt-get -o Acquire::AllowInsecureRepositories=true -o Acquire::AllowDowngradeToInsecureRepositories=true update && apt-get -o APT::Get::AllowUnauthenticated=true install --yes zionetrix-archive-keyring && apt-get clean && rm -fr rm -rf /var/lib/apt/lists/* RUN echo "deb http://debian.zionetrix.net stable main" > /etc/apt/sources.list.d/zionetrix.list && \
RUN apt-get update && apt-get upgrade -y && apt-get install -y python3-all python3-dev python3-pip python3-venv python3-mylib build-essential git libldap2-dev libsasl2-dev pkg-config libsystemd-dev libpq-dev libmariadb-dev wget unzip && apt-get clean && rm -fr rm -rf /var/lib/apt/lists/* apt-get \
RUN python3 -m pip install pylint pytest flake8 flake8-junit-report pylint-junit junitparser pre-commit -o Acquire::AllowInsecureRepositories=true \
RUN wget --no-verbose -O /opt/instantclient-basic-linux.x64-21.4.0.0.0dbru.zip https://download.oracle.com/otn_software/linux/instantclient/214000/instantclient-basic-linux.x64-21.4.0.0.0dbru.zip && unzip -qq -d /opt /opt/instantclient-basic-linux.x64-21.4.0.0.0dbru.zip && echo /opt/instantclient_* > /etc/ld.so.conf.d/oracle-instantclient.conf && ldconfig -o Acquire::AllowDowngradeToInsecureRepositories=true \
update && \
apt-get \
-o APT::Get::AllowUnauthenticated=true \
install --yes zionetrix-archive-keyring && \
apt-get update && \
apt-get upgrade -y && \
apt-get install -y \
python3-all python3-dev python3-pip python3-venv python3-mylib build-essential git \
libldap2-dev libsasl2-dev \
pkg-config libsystemd-dev \
libpq-dev libmariadb-dev \
wget unzip && \
apt-get clean && \
rm -fr rm -rf /var/lib/apt/lists/*
RUN python3 -m pip install --break-system-packages pylint pytest flake8 flake8-junit-report pylint-junit junitparser pre-commit
RUN wget --no-verbose \
-O /opt/instantclient-basic-linux.x64-21.4.0.0.0dbru.zip \
https://download.oracle.com/otn_software/linux/instantclient/214000/instantclient-basic-linux.x64-21.4.0.0.0dbru.zip && \
unzip -qq -d /opt /opt/instantclient-basic-linux.x64-21.4.0.0.0dbru.zip && \
echo /opt/instantclient_* > /etc/ld.so.conf.d/oracle-instantclient.conf && \
ldconfig