Skip to content

Send FETCH STOP_SENDING from its cancellation callback #1664

Send FETCH STOP_SENDING from its cancellation callback

Send FETCH STOP_SENDING from its cancellation callback #1664

name: Docker Build AMD64
on:
push:
branches:
- main
tags:
- 'v*'
workflow_dispatch:
env:
REGISTRY: ghcr.io
IMAGE_NAME: ${{ github.repository_owner }}/moqrelay
jobs:
build-amd64:
runs-on: ubuntu-latest
permissions:
contents: read
packages: write
steps:
- name: Checkout repository
uses: actions/checkout@v4
- name: Log in to registry
if: github.event_name != 'pull_request'
run: |
echo "${{ secrets.GITHUB_TOKEN }}" | docker login ghcr.io -u ${{ github.actor }} --password-stdin
- name: Build amd64 image
run: |
docker build --progress=plain . -f docker/Dockerfile \
-t ghcr.io/${{ env.IMAGE_NAME }}:latest-amd64 \
-t ghcr.io/${{ env.IMAGE_NAME }}:${{ github.sha }}-amd64
- name: Smoke test amd64 image
run: |
set -euo pipefail
docker run --rm --entrypoint sh \
ghcr.io/${{ env.IMAGE_NAME }}:${{ github.sha }}-amd64 \
-c 'ldd /usr/local/bin/moqrelayserver | tee /dev/stderr | grep -q "not found" && exit 1 || exit 0'
- name: Push amd64 image
if: github.event_name != 'pull_request'
run: |
docker push ghcr.io/${{ env.IMAGE_NAME }}:latest-amd64
docker push ghcr.io/${{ env.IMAGE_NAME }}:${{ github.sha }}-amd64