Skip to content

Commit 77fa5b8

Browse files
authored
Update the build action, run on commits to main. (#44)
1 parent 35b5a4a commit 77fa5b8

File tree

2 files changed

+9
-118
lines changed

2 files changed

+9
-118
lines changed

.github/workflows/build.yaml

Lines changed: 0 additions & 103 deletions
This file was deleted.
Lines changed: 9 additions & 15 deletions
Original file line numberDiff line numberDiff line change
@@ -1,30 +1,23 @@
1-
name: "Build and push Docker container"
1+
name: "Publish Docker image to Docker Hub"
22
on:
3+
push:
4+
branches:
5+
- main
36
workflow_dispatch:
47
inputs:
5-
branch:
6-
description: Choose branch or tag, defaults to main
7-
type: string
8-
required: true
9-
default: main
108
emsdk_version:
119
description: Emscripten SDK version, defaults to 4.0.20
1210
type: string
1311
required: false
1412
default: "4.0.20"
15-
docker_tag:
16-
description: Docker tag to use, defaults to latest
17-
type: string
18-
required: false
19-
default: "latest"
13+
2014
jobs:
2115
build:
2216
runs-on: "ubuntu-latest"
2317
steps:
2418
- name: Checkout
2519
uses: actions/checkout@v6
2620
with:
27-
ref: ${{ inputs.branch }}
2821
submodules: 'true'
2922

3023
- name: Install Linux deps
@@ -43,11 +36,12 @@ jobs:
4336
4437
- name: Setup Emscripten SDK
4538
run: |
39+
EMSDK_VERSION="${{ inputs.emsdk_version || '4.0.20' }}"
4640
wget https://github.com/emscripten-core/emsdk/archive/main.zip
4741
unzip main.zip
4842
cd emsdk-main
49-
./emsdk install ${{ inputs.emsdk_version }}
50-
./emsdk activate ${{ inputs.emsdk_version }}
43+
./emsdk install $EMSDK_VERSION
44+
./emsdk activate $EMSDK_VERSION
5145
source ./emsdk_env.sh
5246
echo "EMSDK=$EMSDK" >> $GITHUB_ENV
5347
echo "EM_CONFIG=$EM_CONFIG" >> $GITHUB_ENV
@@ -82,5 +76,5 @@ jobs:
8276
pull: true
8377
push: true
8478
tags: |
85-
jitsi/opus-transcriber-proxy:${{ inputs.docker_tag }}
79+
jitsi/opus-transcriber-proxy:latest
8680
jitsi/opus-transcriber-proxy:${{ github.sha }}

0 commit comments

Comments
 (0)