Skip to content

Commit

Permalink
Merge branch 'dev' into 1418-test-courses-for-lecturers
Browse files Browse the repository at this point in the history
  • Loading branch information
carlobortolan authored Jan 10, 2025
2 parents e05d5df + 08b9166 commit 68e7355
Show file tree
Hide file tree
Showing 155 changed files with 25,154 additions and 1,881 deletions.
10 changes: 10 additions & 0 deletions .github/dependabot.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,10 @@
version: 2
updates:
- package-ecosystem: "docker"
directory: "/"
schedule:
interval: "weekly"
- package-ecosystem: "github-actions"
directory: "/"
schedule:
interval: "weekly"
2 changes: 1 addition & 1 deletion .github/workflows/codeql-analysis.yml
Original file line number Diff line number Diff line change
Expand Up @@ -30,7 +30,7 @@ jobs:

steps:
- name: Checkout repository
uses: actions/checkout@v3
uses: actions/checkout@v4

# Initializes the CodeQL tools for scanning.
- name: Initialize CodeQL
Expand Down
56 changes: 56 additions & 0 deletions .github/workflows/deploy-docs.yaml
Original file line number Diff line number Diff line change
@@ -0,0 +1,56 @@
name: Deploy Docs to GitHub Pages

on:
push:
branches:
- dev
pull_request:
branches:
- dev
# Review gh actions docs if you want to further define triggers, paths, etc
# https://docs.github.com/en/actions/using-workflows/workflow-syntax-for-github-actions#on

jobs:
build:
name: Build Docusaurus
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@v4
with:
fetch-depth: 0
- uses: actions/setup-node@v4
with:
node-version: 18

- name: Install dependencies
run: npm install
working-directory: ./docs_v2
- name: Build website
run: npm run build
working-directory: ./docs_v2

- name: Upload Build Artifact
uses: actions/upload-pages-artifact@v3
with:
path: ./docs_v2/build

deploy:
name: Deploy to GitHub Pages
needs: build
if: github.ref == 'refs/heads/dev'

# Grant GITHUB_TOKEN the permissions required to make a Pages deployment
permissions:
pages: write # to deploy to Pages
id-token: write # to verify the deployment originates from an appropriate source

# Deploy to the github-pages environment
environment:
name: github-pages
url: ${{ steps.deployment.outputs.page_url }}

runs-on: ubuntu-latest
steps:
- name: Deploy to GitHub Pages
id: deployment
uses: actions/deploy-pages@v4
8 changes: 4 additions & 4 deletions .github/workflows/deploy-runners.yml
Original file line number Diff line number Diff line change
Expand Up @@ -20,12 +20,12 @@ jobs:
- name: get container name
run: |
echo "containername=${{ matrix.module }}" | sed 's/\//-/g' > $GITHUB_ENV
- uses: actions/checkout@v3
- uses: actions/checkout@v4
with:
ref: ${{ github.event.pull_request.head.sha }}
- name: Docker meta (${{ matrix.module }})
id: meta
uses: docker/metadata-action@v4
uses: docker/metadata-action@v5
with:
images: ghcr.io/tum-dev/gocast/${{ env.containername }}
tags: |
Expand All @@ -40,7 +40,7 @@ jobs:
- name: Set up Docker Buildx
uses: docker/setup-buildx-action@v2
- name: Login to DockerHub
uses: docker/login-action@v2
uses: docker/login-action@v3
with:
registry: ghcr.io
username: ${{ github.actor }}
Expand All @@ -49,7 +49,7 @@ jobs:
id: vars
run: echo "::set-output name=sha_short::$(git rev-parse --short HEAD)"
- name: Build and push Docker images (${{ matrix.module }})
uses: docker/build-push-action@v4
uses: docker/build-push-action@v6
with:
context: ./${{ matrix.module }}
pull: true
Expand Down
8 changes: 4 additions & 4 deletions .github/workflows/deploy-server.yml
Original file line number Diff line number Diff line change
Expand Up @@ -14,10 +14,10 @@ jobs:
runs-on: ubuntu-latest
steps:
- name: Checkout repository
uses: actions/checkout@v3
uses: actions/checkout@v4
- name: Docker meta
id: meta
uses: docker/metadata-action@v4
uses: docker/metadata-action@v5
with:
images: ghcr.io/tum-dev/gocast/tum-live
tags: |
Expand All @@ -32,13 +32,13 @@ jobs:
- name: Set up Docker Buildx
uses: docker/setup-buildx-action@v2
- name: Login to registry
uses: docker/login-action@v2
uses: docker/login-action@v3
with:
registry: ghcr.io
username: ${{ github.actor }}
password: ${{ secrets.GITHUB_TOKEN }}
- name: Build and push Docker images
uses: docker/build-push-action@v4
uses: docker/build-push-action@v6
with:
context: .
pull: true
Expand Down
8 changes: 4 additions & 4 deletions .github/workflows/deploy-workers.yml
Original file line number Diff line number Diff line change
Expand Up @@ -20,12 +20,12 @@ jobs:
- name: get container name
run: |
echo "containername=${{ matrix.module }}" | sed 's/\//-/g' > $GITHUB_ENV
- uses: actions/checkout@v3
- uses: actions/checkout@v4
with:
ref: ${{ github.event.pull_request.head.sha }}
- name: Docker meta (${{ matrix.module }})
id: meta
uses: docker/metadata-action@v4
uses: docker/metadata-action@v5
with:
images: ghcr.io/tum-dev/gocast/${{ env.containername }}
tags: |
Expand All @@ -40,7 +40,7 @@ jobs:
- name: Set up Docker Buildx
uses: docker/setup-buildx-action@v2
- name: Login to DockerHub
uses: docker/login-action@v2
uses: docker/login-action@v3
with:
registry: ghcr.io
username: ${{ github.actor }}
Expand All @@ -49,7 +49,7 @@ jobs:
id: vars
run: echo "::set-output name=sha_short::$(git rev-parse --short HEAD)"
- name: Build and push Docker images (${{ matrix.module }})
uses: docker/build-push-action@v4
uses: docker/build-push-action@v6
with:
context: ./${{ matrix.module }}
pull: true
Expand Down
2 changes: 1 addition & 1 deletion .github/workflows/eslint.yml
Original file line number Diff line number Diff line change
Expand Up @@ -11,7 +11,7 @@ jobs:
build:
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@v3
- uses: actions/checkout@v4
- name: Install modules
working-directory: ./web
run: npm ci
Expand Down
4 changes: 2 additions & 2 deletions .github/workflows/go-test.yml
Original file line number Diff line number Diff line change
Expand Up @@ -13,12 +13,12 @@ jobs:
runs-on: ${{ matrix.os }}
steps:
- name: Checkout code
uses: actions/checkout@v3
uses: actions/checkout@v4
- name: Install modules
working-directory: ./web
run: npm ci
- name: Install Go
uses: actions/setup-go@v4
uses: actions/setup-go@v5
with:
go-version: ${{ matrix.go-version }}
- name: go test
Expand Down
4 changes: 2 additions & 2 deletions .github/workflows/golangci-lint.yml
Original file line number Diff line number Diff line change
Expand Up @@ -13,10 +13,10 @@ jobs:
strategy:
matrix: { dir: ['./...', './worker', './worker/edge'] }
steps:
- uses: actions/setup-go@v4
- uses: actions/setup-go@v5
with:
go-version: 1.22
- uses: actions/checkout@v3
- uses: actions/checkout@v4
- name: Install modules
working-directory: ./web
run: npm ci
Expand Down
28 changes: 0 additions & 28 deletions .github/workflows/pr-open.yml

This file was deleted.

76 changes: 0 additions & 76 deletions .github/workflows/ts-deploy.yml

This file was deleted.

1 change: 1 addition & 0 deletions CNAME
Original file line number Diff line number Diff line change
@@ -0,0 +1 @@
docs.live.rbg.tum.de
4 changes: 2 additions & 2 deletions Dockerfile
Original file line number Diff line number Diff line change
Expand Up @@ -10,7 +10,7 @@ RUN rm -rf web/assets/ts-dist &&\
WORKDIR /app/web
RUN npm i --no-dev

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

RUN mkdir /gostuff
WORKDIR /gostuff
Expand All @@ -28,7 +28,7 @@ COPY --from=node /app/web/node_modules ./web/node_modules
ARG version=dev
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

FROM alpine:3.18
FROM alpine:3.21
RUN apk add --no-cache tzdata openssl
WORKDIR /app
COPY --from=build-env /go/bin/tumlive .
Expand Down
Loading

0 comments on commit 68e7355

Please sign in to comment.