Skip to content

Allow to manually trigger docker container build #43

Allow to manually trigger docker container build

Allow to manually trigger docker container build #43

name: Publish to Docker Hub
on:
workflow_dispatch:
push:
branches:
- master
tags:
jobs:
test:
name: Test
uses: ./.github/workflows/test.yml
docker:
name: Docker
runs-on: ubuntu-latest
needs: test
steps:
- uses: actions/checkout@v3
- name: Docker meta
id: meta
uses: docker/metadata-action@v4
with:
images: |
yozik04/nibe-mqtt
tags: |
type=raw,value=latest,enable={{is_default_branch}}
type=pep440,pattern={{version}}
type=pep440,pattern={{major}}.{{minor}}
- name: Set up QEMU
uses: docker/setup-qemu-action@v2
- name: Set up Docker Buildx
uses: docker/setup-buildx-action@v2
- name: Login to Docker Hub
uses: docker/login-action@v2
with:
username: yozik04
password: ${{ secrets.DOCKER_HUB_ACCESS_TOKEN }}
- name: Build
uses: docker/bake-action@v2
with:
files: |
./docker/docker-bake.hcl
${{ steps.meta.outputs.bake-file }}
targets: build
push: true