🐳 Extend to allow automatic master merge

This commit is contained in:
Jan Oberhauser 2022-02-10 14:14:55 +01:00
parent b4fb5947dc
commit 6ea22f8451

View file

@ -17,6 +17,11 @@ on:
description: 'Name of the docker tag to create.' description: 'Name of the docker tag to create.'
required: true required: true
default: 'nightly' default: 'nightly'
merge-master:
description: 'Merge with master.'
type: boolean
required: true
default: false
jobs: jobs:
build: build:
@ -37,6 +42,10 @@ jobs:
with: with:
username: ${{ secrets.DOCKER_USERNAME }} username: ${{ secrets.DOCKER_USERNAME }}
password: ${{ secrets.DOCKER_PASSWORD }} password: ${{ secrets.DOCKER_PASSWORD }}
- name: Merge Master - optionally
run: |
[[ "${{github.event.inputs.merge-master}}" == "true" ]] && git merge master || echo ""
shell: bash
- name: Build and push - name: Build and push
uses: docker/build-push-action@v2 uses: docker/build-push-action@v2
with: with: