9 Commits
Author SHA1 Message Date
zeguigui 5140c32b76 Merge pull request 'Add unzip for composer' (#1) from add_unzip_build into main
Build Main / BuildLatest (push) Skipped
Build Tag / BuildVersion (push) Successful in 10m18s
Reviewed-on: #1
2026-10-21 22:25:05 +02:00
Guillaume Lapierre 7944cc07c4 fix: add unzip for composer
Build Main / BuildLatest (push) Skipped
2026-10-21 22:22:31 +02:00
Guillaume Lapierre d2f3f47f5c build: rebuild last released when php:8.3 base image was updated
Build Main / BuildLatest (push) Successful in 12m26s
Nightly build / BuildNightly (push) Failing after 14m2s
Rebuild Last Released / BuildLatest (push) Failing after 15m55s
2024-11-12 12:13:47 +01:00
Guillaume Lapierre 60a74a3e85 workflow triggers
Build Main / BuildLatest (push) Successful in 8m38s
Nightly build / BuildNightly (push) Successful in 27m3s
Rebuild Last Released / BuildLatest (push) Successful in 23m4s
2024-11-08 12:58:48 +01:00
Guillaume Lapierre 0e905955b4 build: change docker tags + rebuild latest release
Build Main / BuildLatest (push) Successful in 7m42s
Rebuild Last Released / BuildVersion (push) Successful in 8m1s
2024-11-08 12:16:09 +01:00
Guillaume Lapierre 7420a91450 Workflow to build latest release
BuildMain / BuildLatest (push) Successful in 10m20s
BuildTag / BuildVersion (push) Successful in 10s
2024-11-08 11:57:50 +01:00
Guillaume Lapierre 808e9f66df build: use checkout@v4
BuildMain / BuildLatest (push) Successful in 8m21s
2024-11-08 11:33:24 +01:00
Guillaume Lapierre 168b287f19 Improve dockerfile following best practices for apt
BuildMain / BuildLatest (push) Successful in 10m12s
2024-11-08 10:24:51 +01:00
Guillaume Lapierre e605ca18a5 Nightly build of main
BuildMain / BuildLatest (push) Successful in 15m56s
BuildTag / BuildNightly (push) Successful in 13m35s
2024-11-04 19:35:56 +01:00
5 changed files with 114 additions and 22 deletions
+2 -2
View File
@@ -2,7 +2,7 @@
# Build docker image
#
name: BuildMain
name: Build Main
run-name: ${{ gitea.actor }} running CI in the pipeline 🚀
on: [ push ]
@@ -14,7 +14,7 @@ jobs:
RUNNER_TOOL_CACHE: /toolcache
steps:
- name: Check out repository code
uses: actions/checkout@v3
uses: actions/checkout@v4
- name: Set up docker buildx
uses: docker/setup-buildx-action@v3
with:
+56
View File
@@ -0,0 +1,56 @@
#
# Build docker image for last released version
#
name: Rebuild Last Released
run-name: ${{ gitea.actor }} running CI in the pipeline 🚀
on:
schedule:
- cron: "10 2 * * *"
jobs:
BuildLatest:
env:
RUNNER_TOOL_CACHE: /toolcache
runs-on: cth-ubuntu-latest
steps:
- name: Check out repository code
uses: actions/checkout@v4
with:
fetch-depth: 0
- name: Get the latest tag
id: get_last_tag
run: echo "LAST_TAG=$(git describe --tags $(git rev-list --tags --max-count=1))" >> $GITHUB_OUTPUT
- name: Checkout latest version
run: git checkout ${{ steps.get_last_tag.outputs.LAST_TAG }}
- name: Login to Docker Hub
uses: docker/login-action@v3
with:
username: ${{ secrets.DOCKERHUB_USERNAME }}
password: ${{ secrets.DOCKERHUB_TOKEN }}
- name: Check if update available
id: checkupdate
uses: lucacome/docker-image-update-checker@v2.0.0
with:
base-image: php:8.3-apache
image: zeguigui/open-report-analyzer:latest
- name: Set up docker buildx
uses: docker/setup-buildx-action@v3
with:
driver-opts: |
network=giteanet
if: steps.checkupdate.outputs.needs-updating == 'true'
- name: Build and push version
uses: docker/build-push-action@v5
env:
ACTIONS_RUNTIME_TOKEN: ''
with:
push: true
tags: zeguigui/open-report-analyzer:${{ steps.get_last_tag.outputs.LAST_TAG }},zeguigui/open-report-analyzer:latest
if: steps.checkupdate.outputs.needs-updating == 'true'
+35
View File
@@ -0,0 +1,35 @@
#
# Build docker image
#
name: Nightly build
run-name: ${{ gitea.actor }} running CI in the pipeline 🚀
on:
schedule:
- cron: "0 2 * * *"
jobs:
BuildNightly:
env:
RUNNER_TOOL_CACHE: /toolcache
runs-on: cth-ubuntu-latest
steps:
- name: Check out repository code
uses: actions/checkout@v4
- name: Set up docker buildx
uses: docker/setup-buildx-action@v3
with:
driver-opts: |
network=giteanet
- name: Login to Docker Hub
uses: docker/login-action@v3
with:
username: ${{ secrets.DOCKERHUB_USERNAME }}
password: ${{ secrets.DOCKERHUB_TOKEN }}
- name: Build and push version
uses: docker/build-push-action@v5
env:
ACTIONS_RUNTIME_TOKEN: ''
with:
push: true
tags: zeguigui/open-report-analyzer:nightly
+3 -3
View File
@@ -2,7 +2,7 @@
# Build docker image
#
name: BuildTag
name: Build Tag
run-name: ${{ gitea.actor }} running CI in the pipeline 🚀
on:
push:
@@ -16,7 +16,7 @@ jobs:
runs-on: cth-ubuntu-latest
steps:
- name: Check out repository code
uses: actions/checkout@v3
uses: actions/checkout@v4
- name: Set up docker buildx
uses: docker/setup-buildx-action@v3
with:
@@ -33,4 +33,4 @@ jobs:
ACTIONS_RUNTIME_TOKEN: ''
with:
push: true
tags: zeguigui/open-report-analyzer:${{ gitea.ref_name }}
tags: zeguigui/open-report-analyzer:${{ gitea.ref_name }},zeguigui/open-report-analyzer:latest
+18 -17
View File
@@ -1,9 +1,10 @@
## https://github.com/userjack6880/Open-Report-Parser
FROM debian:12 AS parserbuild
FROM debian:13 AS parserbuild
RUN apt-get update
RUN apt-get -y upgrade
RUN apt-get install -y git
RUN set -ex ; \
apt-get update ; \
apt-get -y upgrade ; \
apt-get install -y git
WORKDIR /src
RUN git clone https://github.com/userjack6880/Open-Report-Parser.git
@@ -16,14 +17,14 @@ RUN git archive --format tar main | tar -x -C /opt/open-report-parser
## https://github.com/userjack6880/Open-DMARC-Analyzer
### We need composer
FROM composer:latest AS composer
FROM php:cli AS analyzerbuilder
RUN apt-get update
RUN apt-get -y upgrade
RUN apt-get install -y git
RUN mkdir -p /src/analyzer
RUN set -ex ; \
apt-get update ; \
apt-get -y upgrade ; \
apt-get install -y git unzip ; \
mkdir -p /src/analyzer
COPY --from=composer /usr/bin/composer /usr/bin/composer
@@ -40,17 +41,17 @@ RUN /usr/bin/composer require "kevinoo/phpwhois":"^6.3"
FROM php:8.3-apache
# Install dependencies
RUN apt-get update
RUN apt-get -y upgrade
RUN apt-get install -y libpq-dev libfile-mimeinfo-perl libmail-imapclient-perl libmime-tools-perl \
RUN set -ex ; \
apt-get update ; \
apt-get -y upgrade ; \
apt-get install -y libpq-dev libfile-mimeinfo-perl libmail-imapclient-perl libmime-tools-perl \
libxml-simple-perl libio-socket-inet6-perl libio-socket-ip-perl libperlio-gzip-perl \
libmail-mbox-messageparser-perl libwww-perl unzip \
libdbd-mysql-perl libdbd-pg-perl \
liblwp-protocol-https-perl libencode-perl libtime-piece-mysql-perl \
libjson-perl
RUN docker-php-ext-install pdo pdo_mysql pdo_pgsql
libjson-perl ; \
docker-php-ext-install pdo pdo_mysql pdo_pgsql ; \
rm -rf var/lib/apt/lists/*
# open-report-parser
COPY --from=parserbuild /opt/open-report-parser /opt/open-report-parser