Let's build everything via GitHub actions!

This commit is contained in:
Patrik Kernstock 2020-08-08 22:04:40 +01:00
parent 8f2bff1b9b
commit 0afad9d7d1
4 changed files with 29 additions and 9 deletions

View 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

View file

@ -1,4 +1,5 @@
name: container-build
name: Build parsedmarc container
on:
push:
paths:

View file

@ -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 data/conf/parsedmarc/config.ini for parsedmarc itself (and change test to False when tested!)
$ 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`.

View file

@ -2,9 +2,7 @@ version: '2.4'
services:
parsedmarc-init:
build:
context: ./data/Dockerfiles/parsedmarc-init/
image: parsedmarc-init
image: patschi/parsedmarc:init
restart: always
volumes:
- ./data/conf/parsedmarc/:/etc/parsedmarc/:rw
@ -20,9 +18,7 @@ services:
start_period: 10s
parsedmarc:
build:
context: ./data/Dockerfiles/parsedmarc/
image: parsedmarc
image: patschi/parsedmarc:latest
volumes:
- ./data/conf/parsedmarc/:/etc/parsedmarc/
- ./data/data/geoipupdate/:/usr/share/GeoIP:z,ro