ci: add branches restriction for build and docker workflows

This commit is contained in:
Alexis Couvreur
2022-10-06 00:19:58 +00:00
parent 235c939771
commit 4f593b557a
3 changed files with 6 additions and 1 deletions

View File

@@ -2,6 +2,9 @@ name: Build
on:
push:
branches:
- main
- develop
pull_request:
jobs:

View File

@@ -3,7 +3,8 @@ name: Docker
on:
push:
branches:
- "**"
- main
- develop
tags:
- "v*"
pull_request:

View File

@@ -55,6 +55,7 @@ jobs:
id: docker_build
uses: docker/build-push-action@v2
with:
load: true
context: .
tags: ghcr.io/acouvreur/sablier:local