[github] fix docker workflow (#4831)

- run only on tagged commits and not on every commit to master
- use the correct github token
pull/4906/head
Mike Fährmann 10 months ago
parent 99b76628f7
commit d1ea60c057
No known key found for this signature in database
GPG Key ID: 5680CA389D365A88

@ -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

Loading…
Cancel
Save