mirror of
https://github.com/tobiasehlert/teslamateapi.git
synced 2026-02-27 09:54:18 +08:00
updating build-workflow and Dockerfile
only run on certain branches
This commit is contained in:
5
.github/workflows/build.yml
vendored
5
.github/workflows/build.yml
vendored
@@ -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 }}
|
||||
|
||||
Reference in New Issue
Block a user