Compare commits
7
Commits
v1.0
...
d2f3f47f5c
| Author | SHA1 | Date | |
|---|---|---|---|
|
|
d2f3f47f5c | ||
|
|
60a74a3e85 | ||
|
|
0e905955b4 | ||
|
|
7420a91450 | ||
|
|
808e9f66df | ||
|
|
168b287f19 | ||
|
|
e605ca18a5 |
@@ -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:
|
||||
|
||||
@@ -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'
|
||||
@@ -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
|
||||
@@ -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
|
||||
+17
-16
@@ -1,9 +1,10 @@
|
||||
## https://github.com/userjack6880/Open-Report-Parser
|
||||
FROM debian:12 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 ; \
|
||||
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
|
||||
|
||||
Reference in New Issue
Block a user