create github action for automated docker hub publishing

This commit is contained in:
Michi 2024-03-24 20:45:04 +01:00 committed by GitHub
parent 2f67d5bb9a
commit ff4f5e10ae
No known key found for this signature in database
GPG key ID: B5690EEEBB952194

View file

@ -0,0 +1,18 @@
name: Docker-Hub-Autopublishing
on:
push:
tags:
- '*'
jobs:
build:
runs-on: debian-latest
steps:
- uses: actions/checkout@v1
- name: Build docker image and push to docker hub
run: |
echo "${{ secrets.DOCKER_TOKEN }}" | docker login -u michivonah --password-stdin
docker image build -t michivonah/ep-alerts:latest .
docker push michivonah/ep-alerts:latest