Skip to content

Merge pull request #210 from allangood/dependabot/pip/pyyaml-6.0.1 #170

Merge pull request #210 from allangood/dependabot/pip/pyyaml-6.0.1

Merge pull request #210 from allangood/dependabot/pip/pyyaml-6.0.1 #170

Workflow file for this run

name: "Docker build"
on:
workflow_dispatch:
inputs:
tags:
description: "Manual trigger"
push:
paths-ignore:
- "**.md"
- "**.json"
- "**.yaml"
- "LICENSE"
- ".github/**"
- "examples/**"
branches:
- main
- dev
tags:
- "*.*.*"
env:
IMAGE_NAME: rtlamr2mqtt
jobs:
release:
runs-on: ubuntu-latest
steps:
- name: Checkout
uses: actions/checkout@v3
- name: Docker meta
id: meta
uses: docker/metadata-action@v4
with:
# list of Docker images to use as base name for tags
images: |
${{ github.actor }}/rtlamr2mqtt
# generate Docker tags based on the following events/attributes
tags: |
type=ref,event=branch
type=semver,pattern={{version}}
type=sha
- name: Set up QEMU
id: qemu
uses: docker/setup-qemu-action@v2
with:
platforms: all
- name: Set up Docker Buildx
id: buildx
uses: docker/setup-buildx-action@v2
- name: Available platforms
run: echo ${{ steps.buildx.outputs.platforms }}
- name: Login to DockerHub
if: github.event_name != 'pull_request'
uses: docker/login-action@v2
with:
username: ${{ github.actor }}
password: ${{ secrets.DOCKER_PASSWORD }}
- name: Build and push
uses: docker/build-push-action@v4
with:
context: rtlamr2mqtt-addon/
platforms: linux/amd64,linux/i386,linux/arm64,linux/arm/v7,linux/arm/v6
push: ${{ github.event_name != 'pull_request' }}
tags: ${{ steps.meta.outputs.tags }}
labels: ${{ steps.meta.outputs.labels }}