Skip to content

Merge pull request #358 from SK-CERT/dependabot/pip/src/publishers/ma… #36

Merge pull request #358 from SK-CERT/dependabot/pip/src/publishers/ma…

Merge pull request #358 from SK-CERT/dependabot/pip/src/publishers/ma… #36

name: Publishers Docker image
on:
push:
paths:
- 'src/publishers/**'
- 'docker/Dockerfile.publishers'
- 'docker/start.sh'
- 'docker/prestart.sh'
- 'docker/entrypoint.sh'
- 'docker/gunicorn_conf.py'
branches:
- main
permissions:
packages: write
jobs:
build:
name: build docker
runs-on: ubuntu-latest
steps:
- name: Login to GitHub Container Registry
uses: docker/login-action@v2
with:
registry: ghcr.io
username: ${{ github.actor }}
password: ${{ secrets.GITHUB_TOKEN }}
- name: get ghcr owner repository
run: |
echo "GHCR_OWNER=${GITHUB_REPOSITORY_OWNER,,}" >>${GITHUB_ENV}
- name: Build and push publishers
uses: docker/build-push-action@v3
with:
file: docker/Dockerfile.publishers
push: true
tags: |
ghcr.io/${{ env.GHCR_OWNER }}/taranis-ng-publishers:${{ github.ref_name }}