Files
webspeak3/.github/workflows/docker-publish.yml
T
MoepchiandClaude Opus 5.5 cc70bc4736 Anonymous usage ping from self-hosted gateways
On startup and once a day the gateway sends a random instance id and its
version to gateway.webspeak3.de (TELEMETRY=0 turns it off, the startup log
says so). The standalone store server receives it with PING_DATA_FILE set,
keeps id/version/first/last seen without IPs, and serves admin-only counts.
The release tag is baked into the image as WEBSPEAK3_VERSION.

Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
Claude-Session: https://claude.ai/code/session_01Hu2cuPLqpuKVfd9wWFFakU
2026-10-19 09:01:59 +00:00

63 lines
1.9 KiB
YAML

name: Build and publish Docker image
on:
release:
types: [published]
workflow_dispatch:
permissions:
contents: read
concurrency:
group: docker-publish-${{ github.ref }}
cancel-in-progress: false
jobs:
build-and-push:
name: Build and push moepchi/webspeak3
runs-on: ubuntu-latest
timeout-minutes: 30
steps:
- name: Check out repository
uses: actions/checkout@fbc6f3992d24b796d5a048ff273f7fcc4a7b6c09 # v5
with:
submodules: recursive
- name: Set up QEMU
uses: docker/setup-qemu-action@99012661954931238ded8c8b007157a8430204e1 # v4
- name: Set up Docker Buildx
uses: docker/setup-buildx-action@8d2750c68a42422c14e847fe6c8ac0403b4cbd6f # v3
- name: Log in to Docker Hub
uses: docker/login-action@c94ce9fb468520275223c153574b00df6fe4bcc9 # v3
with:
username: ${{ secrets.DOCKERHUB_USERNAME }}
password: ${{ secrets.DOCKERHUB_TOKEN }}
- name: Determine image tags
id: tags
# Passed via env, never spliced into the script: a tag name is
# user-controlled text and would otherwise run as shell code.
env:
EVENT_NAME: ${{ github.event_name }}
RELEASE_TAG: ${{ github.event.release.tag_name }}
run: |
TAGS="moepchi/webspeak3:latest"
if [ "$EVENT_NAME" = "release" ]; then
TAGS="$TAGS,moepchi/webspeak3:$RELEASE_TAG"
fi
echo "tags=$TAGS" >> "$GITHUB_OUTPUT"
- name: Build and push
uses: docker/build-push-action@10e90e3645eae34f1e60eeb005ba3a3d33f178e8 # v6
with:
context: .
push: true
tags: ${{ steps.tags.outputs.tags }}
build-args: WEBSPEAK3_VERSION=${{ github.event.release.tag_name || 'latest' }}
platforms: linux/amd64,linux/arm64
cache-from: type=gha
cache-to: type=gha,mode=max