From ff4f5e10ae3c37fd620b48a593187b631190d4a8 Mon Sep 17 00:00:00 2001 From: Michi Date: Sun, 24 Mar 2024 20:45:04 +0100 Subject: [PATCH] create github action for automated docker hub publishing --- .github/workflows/dockerhub-autopublishing.yml | 18 ++++++++++++++++++ 1 file changed, 18 insertions(+) create mode 100644 .github/workflows/dockerhub-autopublishing.yml diff --git a/.github/workflows/dockerhub-autopublishing.yml b/.github/workflows/dockerhub-autopublishing.yml new file mode 100644 index 0000000..1444956 --- /dev/null +++ b/.github/workflows/dockerhub-autopublishing.yml @@ -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