Let's build everything via GitHub actions!
This commit is contained in:
parent
8f2bff1b9b
commit
0afad9d7d1
4 changed files with 29 additions and 9 deletions
23
.github/workflows/build-parsedmarc-init.yml
vendored
Normal file
23
.github/workflows/build-parsedmarc-init.yml
vendored
Normal file
|
@ -0,0 +1,23 @@
|
||||||
|
name: Build parsedmarc-init container
|
||||||
|
|
||||||
|
on:
|
||||||
|
push:
|
||||||
|
paths:
|
||||||
|
- 'data/Dockerfiles/parsedmarc-init/**'
|
||||||
|
workflow_dispatch:
|
||||||
|
|
||||||
|
jobs:
|
||||||
|
build:
|
||||||
|
runs-on: ubuntu-latest
|
||||||
|
steps:
|
||||||
|
- name: Checkout code
|
||||||
|
uses: actions/checkout@v2
|
||||||
|
- name: Build and push Docker image
|
||||||
|
uses: docker/build-push-action@v1
|
||||||
|
with:
|
||||||
|
path: data/Dockerfiles/parsedmarc/
|
||||||
|
username: ${{ secrets.DOCKER_USERNAME }}
|
||||||
|
password: ${{ secrets.DOCKER_PASSWORD }}
|
||||||
|
repository: patschi/parsedmarc
|
||||||
|
tags: init
|
||||||
|
add_git_labels: true
|
|
@ -1,4 +1,5 @@
|
||||||
name: container-build
|
name: Build parsedmarc container
|
||||||
|
|
||||||
on:
|
on:
|
||||||
push:
|
push:
|
||||||
paths:
|
paths:
|
|
@ -8,7 +8,7 @@ $ git clone https://github.com/patschi/parsedmarc-dockerzied.git
|
||||||
# Edit docker-compose.yml and change environment variables below for geoipupdate from maxmind.
|
# Edit docker-compose.yml and change environment variables below for geoipupdate from maxmind.
|
||||||
# Edit data/conf/parsedmarc/config.ini for parsedmarc itself (and change test to False when tested!)
|
# Edit data/conf/parsedmarc/config.ini for parsedmarc itself (and change test to False when tested!)
|
||||||
$ docker-compose pull
|
$ docker-compose pull
|
||||||
$ docker-compose up -d --build
|
$ docker-compose up -d
|
||||||
```
|
```
|
||||||
|
|
||||||
Then the whole stack is being built, created, started and the corresponding dashboard automatically imported into Kibana. After a while you can access the Kibana dashboard with parsed information by [parsedmarc](https://github.com/domainaware/checkdmarc) under the reverse proxy with an automatically self-signed certificate at `https://IP:9999`.
|
Then the whole stack is being built, created, started and the corresponding dashboard automatically imported into Kibana. After a while you can access the Kibana dashboard with parsed information by [parsedmarc](https://github.com/domainaware/checkdmarc) under the reverse proxy with an automatically self-signed certificate at `https://IP:9999`.
|
||||||
|
|
|
@ -2,9 +2,7 @@ version: '2.4'
|
||||||
|
|
||||||
services:
|
services:
|
||||||
parsedmarc-init:
|
parsedmarc-init:
|
||||||
build:
|
image: patschi/parsedmarc:init
|
||||||
context: ./data/Dockerfiles/parsedmarc-init/
|
|
||||||
image: parsedmarc-init
|
|
||||||
restart: always
|
restart: always
|
||||||
volumes:
|
volumes:
|
||||||
- ./data/conf/parsedmarc/:/etc/parsedmarc/:rw
|
- ./data/conf/parsedmarc/:/etc/parsedmarc/:rw
|
||||||
|
@ -20,9 +18,7 @@ services:
|
||||||
start_period: 10s
|
start_period: 10s
|
||||||
|
|
||||||
parsedmarc:
|
parsedmarc:
|
||||||
build:
|
image: patschi/parsedmarc:latest
|
||||||
context: ./data/Dockerfiles/parsedmarc/
|
|
||||||
image: parsedmarc
|
|
||||||
volumes:
|
volumes:
|
||||||
- ./data/conf/parsedmarc/:/etc/parsedmarc/
|
- ./data/conf/parsedmarc/:/etc/parsedmarc/
|
||||||
- ./data/data/geoipupdate/:/usr/share/GeoIP:z,ro
|
- ./data/data/geoipupdate/:/usr/share/GeoIP:z,ro
|
||||||
|
|
Loading…
Reference in a new issue