add development build with github actions to image tag "next"

This commit is contained in:
Dieter Schmidt
2021-05-29 18:26:05 +02:00
parent 760cb1358f
commit 45db2912a4

View File

@@ -4,6 +4,7 @@ on:
push:
branches:
- main
- develop
schedule:
- cron: "42 13 * * 0,2,5"
@@ -24,6 +25,11 @@ jobs:
DOCKER_IMAGE=${{ secrets.DOCKER_USERNAME }}/klipper-moonraker
VERSION=latest
DATE=${{steps.date.outputs.date}}
BRANCH=${GITHUB_REF##*/}
if [[ $BRANCH == 'develop' ]]; then
VERSION=next
fi
# If this is git tag, use the tag name as a docker tag
if [[ $GITHUB_REF == refs/tags/* ]]; then