Skip to content

Merge pull request #221 from justin654/justin654-patch-1 #171

Merge pull request #221 from justin654/justin654-patch-1

Merge pull request #221 from justin654/justin654-patch-1 #171

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@v4
- 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@v3
with:
platforms: all
- name: Set up Docker Buildx
id: buildx
uses: docker/setup-buildx-action@v3
- name: Available platforms
run: echo ${{ steps.buildx.outputs.platforms }}
- name: Login to DockerHub
if: github.event_name != 'pull_request'
uses: docker/login-action@v3
with:
username: ${{ github.actor }}
password: ${{ secrets.DOCKER_PASSWORD }}
- name: Build and push
uses: docker/build-push-action@v5
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 }}