Compare commits
7
Commits
v1.0
...
d2f3f47f5c
| Author | SHA1 | Date | |
|---|---|---|---|
|
|
d2f3f47f5c | ||
|
|
60a74a3e85 | ||
|
|
0e905955b4 | ||
|
|
7420a91450 | ||
|
|
808e9f66df | ||
|
|
168b287f19 | ||
|
|
e605ca18a5 |
@@ -2,7 +2,7 @@
|
|||||||
# Build docker image
|
# Build docker image
|
||||||
#
|
#
|
||||||
|
|
||||||
name: BuildMain
|
name: Build Main
|
||||||
run-name: ${{ gitea.actor }} running CI in the pipeline 🚀
|
run-name: ${{ gitea.actor }} running CI in the pipeline 🚀
|
||||||
on: [ push ]
|
on: [ push ]
|
||||||
|
|
||||||
@@ -14,7 +14,7 @@ jobs:
|
|||||||
RUNNER_TOOL_CACHE: /toolcache
|
RUNNER_TOOL_CACHE: /toolcache
|
||||||
steps:
|
steps:
|
||||||
- name: Check out repository code
|
- name: Check out repository code
|
||||||
uses: actions/checkout@v3
|
uses: actions/checkout@v4
|
||||||
- name: Set up docker buildx
|
- name: Set up docker buildx
|
||||||
uses: docker/setup-buildx-action@v3
|
uses: docker/setup-buildx-action@v3
|
||||||
with:
|
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
|
||||||
@@ -2,7 +2,7 @@
|
|||||||
# Build docker image
|
# Build docker image
|
||||||
#
|
#
|
||||||
|
|
||||||
name: BuildTag
|
name: Build Tag
|
||||||
run-name: ${{ gitea.actor }} running CI in the pipeline 🚀
|
run-name: ${{ gitea.actor }} running CI in the pipeline 🚀
|
||||||
on:
|
on:
|
||||||
push:
|
push:
|
||||||
@@ -16,7 +16,7 @@ jobs:
|
|||||||
runs-on: cth-ubuntu-latest
|
runs-on: cth-ubuntu-latest
|
||||||
steps:
|
steps:
|
||||||
- name: Check out repository code
|
- name: Check out repository code
|
||||||
uses: actions/checkout@v3
|
uses: actions/checkout@v4
|
||||||
- name: Set up docker buildx
|
- name: Set up docker buildx
|
||||||
uses: docker/setup-buildx-action@v3
|
uses: docker/setup-buildx-action@v3
|
||||||
with:
|
with:
|
||||||
@@ -33,4 +33,4 @@ jobs:
|
|||||||
ACTIONS_RUNTIME_TOKEN: ''
|
ACTIONS_RUNTIME_TOKEN: ''
|
||||||
with:
|
with:
|
||||||
push: true
|
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
|
## https://github.com/userjack6880/Open-Report-Parser
|
||||||
FROM debian:12 AS parserbuild
|
FROM debian:12 AS parserbuild
|
||||||
|
|
||||||
RUN apt-get update
|
RUN set -ex ; \
|
||||||
RUN apt-get -y upgrade
|
apt-get update ; \
|
||||||
RUN apt-get install -y git
|
apt-get -y upgrade ; \
|
||||||
|
apt-get install -y git
|
||||||
|
|
||||||
WORKDIR /src
|
WORKDIR /src
|
||||||
RUN git clone https://github.com/userjack6880/Open-Report-Parser.git
|
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
|
## https://github.com/userjack6880/Open-DMARC-Analyzer
|
||||||
|
|
||||||
### We need composer
|
### We need composer
|
||||||
|
|
||||||
FROM composer:latest AS composer
|
FROM composer:latest AS composer
|
||||||
|
|
||||||
FROM php:cli AS analyzerbuilder
|
FROM php:cli AS analyzerbuilder
|
||||||
RUN apt-get update
|
|
||||||
RUN apt-get -y upgrade
|
RUN set -ex ; \
|
||||||
RUN apt-get install -y git
|
apt-get update ; \
|
||||||
RUN mkdir -p /src/analyzer
|
apt-get -y upgrade ; \
|
||||||
|
apt-get install -y git ; \
|
||||||
|
mkdir -p /src/analyzer
|
||||||
|
|
||||||
COPY --from=composer /usr/bin/composer /usr/bin/composer
|
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
|
FROM php:8.3-apache
|
||||||
|
|
||||||
# Install dependencies
|
# Install dependencies
|
||||||
RUN apt-get update
|
RUN set -ex ; \
|
||||||
RUN apt-get -y upgrade
|
apt-get update ; \
|
||||||
|
apt-get -y upgrade ; \
|
||||||
RUN apt-get install -y libpq-dev libfile-mimeinfo-perl libmail-imapclient-perl libmime-tools-perl \
|
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 \
|
libxml-simple-perl libio-socket-inet6-perl libio-socket-ip-perl libperlio-gzip-perl \
|
||||||
libmail-mbox-messageparser-perl libwww-perl unzip \
|
libmail-mbox-messageparser-perl libwww-perl unzip \
|
||||||
libdbd-mysql-perl libdbd-pg-perl \
|
libdbd-mysql-perl libdbd-pg-perl \
|
||||||
liblwp-protocol-https-perl libencode-perl libtime-piece-mysql-perl \
|
liblwp-protocol-https-perl libencode-perl libtime-piece-mysql-perl \
|
||||||
libjson-perl
|
libjson-perl ; \
|
||||||
|
docker-php-ext-install pdo pdo_mysql pdo_pgsql ; \
|
||||||
RUN docker-php-ext-install pdo pdo_mysql pdo_pgsql
|
rm -rf var/lib/apt/lists/*
|
||||||
|
|
||||||
# open-report-parser
|
# open-report-parser
|
||||||
COPY --from=parserbuild /opt/open-report-parser /opt/open-report-parser
|
COPY --from=parserbuild /opt/open-report-parser /opt/open-report-parser
|
||||||
|
|||||||
Reference in New Issue
Block a user