Skip to content

Update version to 1.9.2: fix worker containers reporting unhealthy #6

Update version to 1.9.2: fix worker containers reporting unhealthy

Update version to 1.9.2: fix worker containers reporting unhealthy #6

Workflow file for this run

name: Publish Docker image
# Builds the unified API+worker image and pushes it to GHCR for non-release
# events (main pushes, manual rebuilds). Tag pushes are handled by
# create-release.yml so the GitHub Release isn't published until the image
# at the matching version is actually live in GHCR.
on:
push:
branches: [main]
workflow_dispatch:
permissions:
contents: read
packages: write
id-token: write # required for build provenance attestation
attestations: write # required by actions/attest-build-provenance
jobs:
build-and-push:
runs-on: ubuntu-latest
env:
REGISTRY: ghcr.io
IMAGE: ghcr.io/${{ github.repository_owner }}/webvideo2nas
steps:
- name: Checkout
uses: actions/checkout@v4
- name: Set up QEMU (multi-arch)
uses: docker/setup-qemu-action@v3
- name: Set up Buildx
uses: docker/setup-buildx-action@v3
- name: Log in to GHCR
uses: docker/login-action@v3
with:
registry: ${{ env.REGISTRY }}
username: ${{ github.actor }}
password: ${{ secrets.GITHUB_TOKEN }}
- name: Generate image metadata
id: meta
uses: docker/metadata-action@v5
with:
images: ${{ env.IMAGE }}
tags: |
type=ref,event=branch
type=semver,pattern={{version}}
type=semver,pattern={{major}}.{{minor}}
type=semver,pattern={{major}}
type=raw,value=latest,enable=${{ startsWith(github.ref, 'refs/tags/v') }}
type=sha,prefix=sha-,format=short
labels: |
org.opencontainers.image.source=https://github.com/${{ github.repository }}
org.opencontainers.image.description=WebVideo2NAS — unified API + worker image
org.opencontainers.image.licenses=MIT
- name: Build and push
id: build
uses: docker/build-push-action@v6
with:
context: video-downloader/docker
file: video-downloader/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
provenance: true
sbom: true
- name: Attest build provenance
uses: actions/attest-build-provenance@v2
with:
subject-name: ${{ env.IMAGE }}
subject-digest: ${{ steps.build.outputs.digest }}
push-to-registry: true