Merge pull request #426 from SK-CERT/dependabot/pip/src/presenters/fl… #60
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
name: Docker image - Presenters | |
on: | |
push: | |
paths: | |
- 'src/presenters/**' | |
- 'docker/Dockerfile.presenters' | |
- '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@v3 | |
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 presenters | |
uses: docker/build-push-action@v6 | |
with: | |
file: docker/Dockerfile.presenters | |
push: true | |
tags: | | |
ghcr.io/${{ env.GHCR_OWNER }}/taranis-ng-presenters:${{ github.ref_name }} |