Skip to content

Make the container's sleepAfter configurable, default to 1min (#60) #14

Make the container's sleepAfter configurable, default to 1min (#60)

Make the container's sleepAfter configurable, default to 1min (#60) #14

Workflow file for this run

name: "Publish Docker image to Docker Hub"
on:
push:
branches:
- main
workflow_dispatch:
inputs:
emsdk_version:
description: Emscripten SDK version, defaults to 4.0.20
type: string
required: false
default: "4.0.20"
jobs:
build:
runs-on: "ubuntu-latest"
steps:
- name: Checkout
uses: actions/checkout@v6
with:
submodules: 'true'
- name: Install Linux deps
run: |
sudo apt update
sudo apt -y install wget unzip
- uses: actions/setup-node@v4
with:
node-version: 22
cache: npm
- name: Install Node Dependencies
run: |
npm ci
- name: Setup Emscripten SDK
run: |
EMSDK_VERSION="${{ inputs.emsdk_version || '4.0.20' }}"
wget https://github.com/emscripten-core/emsdk/archive/main.zip
unzip main.zip
cd emsdk-main
./emsdk install $EMSDK_VERSION
./emsdk activate $EMSDK_VERSION
source ./emsdk_env.sh
echo "EMSDK=$EMSDK" >> $GITHUB_ENV
echo "EM_CONFIG=$EM_CONFIG" >> $GITHUB_ENV
echo "$EMSDK:$EMSDK/upstream/emscripten" >> $GITHUB_PATH
- name: Build WASM modules
run: |
source "$EMSDK/emsdk_env.sh"
npm run build:wasm
- name: Build main worker bundle
run: |
npm run build:bundle
- name: Login to Docker Hub
uses: docker/login-action@v3
with:
username: ${{ secrets.DOCKERHUB_USERNAME }}
password: ${{ secrets.DOCKERHUB_TOKEN }}
- name: Set up QEMU
uses: docker/setup-qemu-action@v3
- name: Set up Docker Buildx
uses: docker/setup-buildx-action@v3
- name: Build and push Docker image
uses: docker/build-push-action@v6
with:
context: ./
platforms: linux/amd64,linux/arm64
pull: true
push: true
tags: |
jitsi/opus-transcriber-proxy:latest
jitsi/opus-transcriber-proxy:${{ github.sha }}