[github] fix docker workflow (#4831)

- run only on tagged commits and not on every commit to master
- use the correct github token
This commit is contained in:
Mike Fährmann
2023-12-05 22:55:07 +01:00
parent 99b76628f7
commit d1ea60c057

View File

@@ -2,8 +2,6 @@ name: docker
on: on:
push: push:
branches:
- master
tags: tags:
- v[0-9]+.[0-9]+.[0-9]+ - v[0-9]+.[0-9]+.[0-9]+
@@ -28,7 +26,7 @@ jobs:
with: with:
registry: ghcr.io registry: ghcr.io
username: ${{ github.repository_owner }} username: ${{ github.repository_owner }}
password: ${{ github.token }} password: ${{ secrets.github_token }}
- name: Login to DockerHub - name: Login to DockerHub
uses: docker/login-action@v3 uses: docker/login-action@v3