Skip to content

Commit 68e7355

Browse files
Merge branch 'dev' into 1418-test-courses-for-lecturers
2 parents e05d5df + 08b9166 commit 68e7355

File tree

155 files changed

+25154
-1881
lines changed

Some content is hidden

Large Commits have some content hidden by default. Use the searchbox below for content that may be hidden.

155 files changed

+25154
-1881
lines changed

.github/dependabot.yml

+10
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,10 @@
1+
version: 2
2+
updates:
3+
- package-ecosystem: "docker"
4+
directory: "/"
5+
schedule:
6+
interval: "weekly"
7+
- package-ecosystem: "github-actions"
8+
directory: "/"
9+
schedule:
10+
interval: "weekly"

.github/workflows/codeql-analysis.yml

+1-1
Original file line numberDiff line numberDiff line change
@@ -30,7 +30,7 @@ jobs:
3030

3131
steps:
3232
- name: Checkout repository
33-
uses: actions/checkout@v3
33+
uses: actions/checkout@v4
3434

3535
# Initializes the CodeQL tools for scanning.
3636
- name: Initialize CodeQL

.github/workflows/deploy-docs.yaml

+56
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,56 @@
1+
name: Deploy Docs to GitHub Pages
2+
3+
on:
4+
push:
5+
branches:
6+
- dev
7+
pull_request:
8+
branches:
9+
- dev
10+
# Review gh actions docs if you want to further define triggers, paths, etc
11+
# https://docs.github.com/en/actions/using-workflows/workflow-syntax-for-github-actions#on
12+
13+
jobs:
14+
build:
15+
name: Build Docusaurus
16+
runs-on: ubuntu-latest
17+
steps:
18+
- uses: actions/checkout@v4
19+
with:
20+
fetch-depth: 0
21+
- uses: actions/setup-node@v4
22+
with:
23+
node-version: 18
24+
25+
- name: Install dependencies
26+
run: npm install
27+
working-directory: ./docs_v2
28+
- name: Build website
29+
run: npm run build
30+
working-directory: ./docs_v2
31+
32+
- name: Upload Build Artifact
33+
uses: actions/upload-pages-artifact@v3
34+
with:
35+
path: ./docs_v2/build
36+
37+
deploy:
38+
name: Deploy to GitHub Pages
39+
needs: build
40+
if: github.ref == 'refs/heads/dev'
41+
42+
# Grant GITHUB_TOKEN the permissions required to make a Pages deployment
43+
permissions:
44+
pages: write # to deploy to Pages
45+
id-token: write # to verify the deployment originates from an appropriate source
46+
47+
# Deploy to the github-pages environment
48+
environment:
49+
name: github-pages
50+
url: ${{ steps.deployment.outputs.page_url }}
51+
52+
runs-on: ubuntu-latest
53+
steps:
54+
- name: Deploy to GitHub Pages
55+
id: deployment
56+
uses: actions/deploy-pages@v4

.github/workflows/deploy-runners.yml

+4-4
Original file line numberDiff line numberDiff line change
@@ -20,12 +20,12 @@ jobs:
2020
- name: get container name
2121
run: |
2222
echo "containername=${{ matrix.module }}" | sed 's/\//-/g' > $GITHUB_ENV
23-
- uses: actions/checkout@v3
23+
- uses: actions/checkout@v4
2424
with:
2525
ref: ${{ github.event.pull_request.head.sha }}
2626
- name: Docker meta (${{ matrix.module }})
2727
id: meta
28-
uses: docker/metadata-action@v4
28+
uses: docker/metadata-action@v5
2929
with:
3030
images: ghcr.io/tum-dev/gocast/${{ env.containername }}
3131
tags: |
@@ -40,7 +40,7 @@ jobs:
4040
- name: Set up Docker Buildx
4141
uses: docker/setup-buildx-action@v2
4242
- name: Login to DockerHub
43-
uses: docker/login-action@v2
43+
uses: docker/login-action@v3
4444
with:
4545
registry: ghcr.io
4646
username: ${{ github.actor }}
@@ -49,7 +49,7 @@ jobs:
4949
id: vars
5050
run: echo "::set-output name=sha_short::$(git rev-parse --short HEAD)"
5151
- name: Build and push Docker images (${{ matrix.module }})
52-
uses: docker/build-push-action@v4
52+
uses: docker/build-push-action@v6
5353
with:
5454
context: ./${{ matrix.module }}
5555
pull: true

.github/workflows/deploy-server.yml

+4-4
Original file line numberDiff line numberDiff line change
@@ -14,10 +14,10 @@ jobs:
1414
runs-on: ubuntu-latest
1515
steps:
1616
- name: Checkout repository
17-
uses: actions/checkout@v3
17+
uses: actions/checkout@v4
1818
- name: Docker meta
1919
id: meta
20-
uses: docker/metadata-action@v4
20+
uses: docker/metadata-action@v5
2121
with:
2222
images: ghcr.io/tum-dev/gocast/tum-live
2323
tags: |
@@ -32,13 +32,13 @@ jobs:
3232
- name: Set up Docker Buildx
3333
uses: docker/setup-buildx-action@v2
3434
- name: Login to registry
35-
uses: docker/login-action@v2
35+
uses: docker/login-action@v3
3636
with:
3737
registry: ghcr.io
3838
username: ${{ github.actor }}
3939
password: ${{ secrets.GITHUB_TOKEN }}
4040
- name: Build and push Docker images
41-
uses: docker/build-push-action@v4
41+
uses: docker/build-push-action@v6
4242
with:
4343
context: .
4444
pull: true

.github/workflows/deploy-workers.yml

+4-4
Original file line numberDiff line numberDiff line change
@@ -20,12 +20,12 @@ jobs:
2020
- name: get container name
2121
run: |
2222
echo "containername=${{ matrix.module }}" | sed 's/\//-/g' > $GITHUB_ENV
23-
- uses: actions/checkout@v3
23+
- uses: actions/checkout@v4
2424
with:
2525
ref: ${{ github.event.pull_request.head.sha }}
2626
- name: Docker meta (${{ matrix.module }})
2727
id: meta
28-
uses: docker/metadata-action@v4
28+
uses: docker/metadata-action@v5
2929
with:
3030
images: ghcr.io/tum-dev/gocast/${{ env.containername }}
3131
tags: |
@@ -40,7 +40,7 @@ jobs:
4040
- name: Set up Docker Buildx
4141
uses: docker/setup-buildx-action@v2
4242
- name: Login to DockerHub
43-
uses: docker/login-action@v2
43+
uses: docker/login-action@v3
4444
with:
4545
registry: ghcr.io
4646
username: ${{ github.actor }}
@@ -49,7 +49,7 @@ jobs:
4949
id: vars
5050
run: echo "::set-output name=sha_short::$(git rev-parse --short HEAD)"
5151
- name: Build and push Docker images (${{ matrix.module }})
52-
uses: docker/build-push-action@v4
52+
uses: docker/build-push-action@v6
5353
with:
5454
context: ./${{ matrix.module }}
5555
pull: true

.github/workflows/eslint.yml

+1-1
Original file line numberDiff line numberDiff line change
@@ -11,7 +11,7 @@ jobs:
1111
build:
1212
runs-on: ubuntu-latest
1313
steps:
14-
- uses: actions/checkout@v3
14+
- uses: actions/checkout@v4
1515
- name: Install modules
1616
working-directory: ./web
1717
run: npm ci

.github/workflows/go-test.yml

+2-2
Original file line numberDiff line numberDiff line change
@@ -13,12 +13,12 @@ jobs:
1313
runs-on: ${{ matrix.os }}
1414
steps:
1515
- name: Checkout code
16-
uses: actions/checkout@v3
16+
uses: actions/checkout@v4
1717
- name: Install modules
1818
working-directory: ./web
1919
run: npm ci
2020
- name: Install Go
21-
uses: actions/setup-go@v4
21+
uses: actions/setup-go@v5
2222
with:
2323
go-version: ${{ matrix.go-version }}
2424
- name: go test

.github/workflows/golangci-lint.yml

+2-2
Original file line numberDiff line numberDiff line change
@@ -13,10 +13,10 @@ jobs:
1313
strategy:
1414
matrix: { dir: ['./...', './worker', './worker/edge'] }
1515
steps:
16-
- uses: actions/setup-go@v4
16+
- uses: actions/setup-go@v5
1717
with:
1818
go-version: 1.22
19-
- uses: actions/checkout@v3
19+
- uses: actions/checkout@v4
2020
- name: Install modules
2121
working-directory: ./web
2222
run: npm ci

.github/workflows/pr-open.yml

-28
This file was deleted.

.github/workflows/ts-deploy.yml

-76
This file was deleted.

CNAME

+1
Original file line numberDiff line numberDiff line change
@@ -0,0 +1 @@
1+
docs.live.rbg.tum.de

Dockerfile

+2-2
Original file line numberDiff line numberDiff line change
@@ -10,7 +10,7 @@ RUN rm -rf web/assets/ts-dist &&\
1010
WORKDIR /app/web
1111
RUN npm i --no-dev
1212

13-
FROM golang:1.21-alpine3.18 as build-env
13+
FROM golang:1.22-alpine3.18 as build-env
1414

1515
RUN mkdir /gostuff
1616
WORKDIR /gostuff
@@ -28,7 +28,7 @@ COPY --from=node /app/web/node_modules ./web/node_modules
2828
ARG version=dev
2929
RUN CGO_ENABLED=0 GOOS=linux GOARCH=amd64 go build -ldflags "-w -extldflags '-static' -X main.VersionTag=${version}" -o /go/bin/tumlive cmd/tumlive/tumlive.go
3030

31-
FROM alpine:3.18
31+
FROM alpine:3.21
3232
RUN apk add --no-cache tzdata openssl
3333
WORKDIR /app
3434
COPY --from=build-env /go/bin/tumlive .

0 commit comments

Comments
 (0)