Skip to content

Commit 011c66e

Browse files
committed
feat: add Matterbridge image
1 parent 323ddee commit 011c66e

File tree

3 files changed

+54
-0
lines changed

3 files changed

+54
-0
lines changed
Lines changed: 42 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,42 @@
1+
name: Build Matterbridge
2+
3+
on:
4+
push:
5+
branches:
6+
- main
7+
8+
permissions:
9+
id-token: write
10+
11+
jobs:
12+
docker:
13+
runs-on: ubuntu-latest
14+
steps:
15+
-
16+
name: Checkout
17+
uses: actions/checkout@692973e3d937129bcbf40652eb9f2f61becf3332 # v4.1.7
18+
-
19+
name: Login to Stackable Harbor
20+
uses: docker/login-action@0d4c9c5ea7693da7b068278f7b52bda2a190a446 # v3.2.0
21+
with:
22+
registry: oci.stackable.tech
23+
username: robot$stackable+github-action-build
24+
password: ${{ secrets.HARBOR_ROBOT_STACKABLE_GITHUB_ACTION_BUILD_SECRET }}
25+
-
26+
name: Set up Cosign
27+
uses: sigstore/cosign-installer@9614fae9e5c5eddabb09f90a270fcb487c9f7149 # tag=v3.3.0
28+
-
29+
name: Build and push
30+
id: build-and-push
31+
uses: docker/build-push-action@ca052bb54ab0790a636c9b5f226502c73d547a25 # v5.4.0
32+
with:
33+
context: ./tools/matterbridge
34+
file: ./tools/matterbridge/Dockerfile
35+
push: true
36+
tags: oci.stackable.tech/stackable/matterbridge:0.0.0-dev
37+
build-args: |
38+
REVISION=${{ github.sha }}
39+
VERSION=dev
40+
-
41+
name: Sign the published image
42+
run: cosign sign -y oci.stackable.tech/stackable/matterbridge@${{ steps.build-and-push.outputs.digest }}

tools/matterbridge/Dockerfile

Lines changed: 11 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,11 @@
1+
FROM ubuntu:latest
2+
LABEL maintainer="Stackable GmbH"
3+
4+
WORKDIR /app
5+
RUN apt-get update && apt-get upgrade -y && apt-get install -y curl && apt-get clean && rm -rf /var/lib/apt/lists/*
6+
RUN curl -LO https://github.com/42wim/matterbridge/releases/download/v1.26.0/matterbridge-1.26.0-linux-64bit
7+
ADD matterbridge-1.26.0-linux-64bit.sha256 /app/matterbridge-1.26.0-linux-64bit.sha256
8+
RUN sha256sum -c matterbridge-1.26.0-linux-64bit.sha256
9+
RUN chmod +x matterbridge-1.26.0-linux-64bit
10+
11+
ENTRYPOINT ["/app/matterbridge-1.26.0-linux-64bit", "-conf", "/app/conf/matterbridge.toml"]
Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1 @@
1+
7f5a74b9b7cbf395b8873f3f3f418d90c61197e3cc677882e70b7faeef4c35b0 matterbridge-1.26.0-linux-64bit

0 commit comments

Comments
 (0)