updating build-workflow and Dockerfile

only run on certain branches
This commit is contained in:
Tobias Lindberg
2021-12-23 10:58:47 +01:00
parent 843e41eb2d
commit 0701e31339
2 changed files with 7 additions and 4 deletions

View File

@@ -3,7 +3,9 @@ name: build
on:
push:
branches:
- "**"
- "main"
- "feature-*"
- "bug-*"
tags:
- "v*"
@@ -35,6 +37,7 @@ jobs:
${{ runner.os }}-buildx-
- name: Login to DockerHub
if: github.event_name != 'pull_request'
uses: docker/login-action@v1.12.0
with:
username: ${{ secrets.DOCKERHUB_USERNAME }}