Skip to content

fix(driver): remove stray '<<<<<<< HEAD' merge marker in usb_radio.py #4

fix(driver): remove stray '<<<<<<< HEAD' merge marker in usb_radio.py

fix(driver): remove stray '<<<<<<< HEAD' merge marker in usb_radio.py #4

Workflow file for this run

# =============================================================
# docker-publish.yml — build itkeny/pymc-usb-repeater and push to
# Docker Hub on every git tag matching v* (and on manual dispatch).
#
# Triggers:
# * Push of any tag starting with "v" (e.g. v0.6.0) → builds
# multi-arch (amd64 + arm64) image, tags it with the git tag
# and `latest`, pushes both.
# * Manual workflow_dispatch from the Actions tab → builds
# and pushes only `:latest` (useful for ad-hoc rebuilds without
# bumping the version tag).
#
# Required repo secrets (Settings → Secrets → Actions):
# DOCKERHUB_USERNAME — Docker Hub account that owns
# itkeny/pymc-usb-repeater
# DOCKERHUB_TOKEN — Docker Hub Access Token (Read & Write
# scope is enough; do NOT use the account
# password)
#
# Release procedure for the maintainer:
# git tag v0.6.0
# git push origin v0.6.0
# # ~5 minutes later both tags (v0.6.0 + latest) live on Hub.
# =============================================================
name: Publish Docker image
on:
push:
tags:
- 'v*'
workflow_dispatch:
jobs:
build-and-push:
runs-on: ubuntu-latest
permissions:
contents: read
steps:
- name: Checkout repository
uses: actions/checkout@v4
- name: Set up QEMU (arm64 emulation)
uses: docker/setup-qemu-action@v3
- name: Set up Docker Buildx
uses: docker/setup-buildx-action@v3
- name: Log in to Docker Hub
uses: docker/login-action@v3
with:
username: ${{ secrets.DOCKERHUB_USERNAME }}
password: ${{ secrets.DOCKERHUB_TOKEN }}
- name: Extract image metadata (tag + latest)
id: meta
uses: docker/metadata-action@v5
with:
images: itkeny/pymc-usb-repeater
tags: |
type=ref,event=tag
type=raw,value=latest,enable=${{ startsWith(github.ref, 'refs/tags/v') }}
type=raw,value=latest,enable=${{ github.event_name == 'workflow_dispatch' }}
- name: Build and push multi-arch image
uses: docker/build-push-action@v5
with:
context: .
file: ./docker/Dockerfile
platforms: linux/amd64,linux/arm64
push: true
tags: ${{ steps.meta.outputs.tags }}
labels: ${{ steps.meta.outputs.labels }}
cache-from: type=gha
cache-to: type=gha,mode=max