mirror of
https://github.com/goauthentik/authentik
synced 2026-04-25 17:15:26 +02:00
* config for split
Signed-off-by: Jens Langhammer <jens@goauthentik.io>
* update alllll the links
Signed-off-by: Jens Langhammer <jens@goauthentik.io>
* add redirect
Signed-off-by: Jens Langhammer <jens@goauthentik.io>
* add separate job for integrations build
Signed-off-by: Jens Langhammer <jens@goauthentik.io>
* Update website/netlify.toml
Co-authored-by: Dominic R <dominic@sdko.org>
Signed-off-by: Jens L. <jens@beryju.org>
* Revert "update alllll the links"
This reverts commit 872c5870a8.
* absolute relative URLs only
Signed-off-by: Jens Langhammer <jens@goauthentik.io>
* but use a plugin to rewrite them
Signed-off-by: Jens Langhammer <jens@goauthentik.io>
* fix external URL regex
Signed-off-by: Jens Langhammer <jens@goauthentik.io>
* make rewrite plugin more re-usable
Signed-off-by: Jens Langhammer <jens@goauthentik.io>
* fix the reverse links
Signed-off-by: Jens Langhammer <jens@goauthentik.io>
* lint
Signed-off-by: Jens Langhammer <jens@goauthentik.io>
* fix root redirect
Signed-off-by: Jens Langhammer <jens@goauthentik.io>
* fix rediret
Signed-off-by: Jens Langhammer <jens@goauthentik.io>
* fix root redirect
Signed-off-by: Jens Langhammer <jens@goauthentik.io>
* fix redirect
Signed-off-by: Jens Langhammer <jens@goauthentik.io>
---------
Signed-off-by: Jens Langhammer <jens@goauthentik.io>
Signed-off-by: Jens L. <jens@beryju.org>
Co-authored-by: Dominic R <dominic@sdko.org>
125 lines
3.5 KiB
YAML
125 lines
3.5 KiB
YAML
name: authentik-ci-website
|
|
|
|
on:
|
|
push:
|
|
branches:
|
|
- main
|
|
- next
|
|
- version-*
|
|
pull_request:
|
|
branches:
|
|
- main
|
|
- version-*
|
|
|
|
jobs:
|
|
lint:
|
|
runs-on: ubuntu-latest
|
|
strategy:
|
|
fail-fast: false
|
|
matrix:
|
|
command:
|
|
- lint:lockfile
|
|
- prettier-check
|
|
steps:
|
|
- uses: actions/checkout@v4
|
|
- working-directory: website/
|
|
run: npm ci
|
|
- name: Lint
|
|
working-directory: website/
|
|
run: npm run ${{ matrix.command }}
|
|
test:
|
|
runs-on: ubuntu-latest
|
|
steps:
|
|
- uses: actions/checkout@v4
|
|
- uses: actions/setup-node@v4
|
|
with:
|
|
node-version-file: website/package.json
|
|
cache: "npm"
|
|
cache-dependency-path: website/package-lock.json
|
|
- working-directory: website/
|
|
run: npm ci
|
|
- name: test
|
|
working-directory: website/
|
|
run: npm test
|
|
build:
|
|
runs-on: ubuntu-latest
|
|
name: ${{ matrix.job }}
|
|
strategy:
|
|
fail-fast: false
|
|
matrix:
|
|
job:
|
|
- build
|
|
- build:integrations
|
|
steps:
|
|
- uses: actions/checkout@v4
|
|
- uses: actions/setup-node@v4
|
|
with:
|
|
node-version-file: website/package.json
|
|
cache: "npm"
|
|
cache-dependency-path: website/package-lock.json
|
|
- working-directory: website/
|
|
run: npm ci
|
|
- name: build
|
|
working-directory: website/
|
|
run: npm run ${{ matrix.job }}
|
|
build-container:
|
|
runs-on: ubuntu-latest
|
|
permissions:
|
|
# Needed to upload container images to ghcr.io
|
|
packages: write
|
|
# Needed for attestation
|
|
id-token: write
|
|
attestations: write
|
|
steps:
|
|
- uses: actions/checkout@v4
|
|
with:
|
|
ref: ${{ github.event.pull_request.head.sha }}
|
|
- name: Set up QEMU
|
|
uses: docker/setup-qemu-action@v3.6.0
|
|
- name: Set up Docker Buildx
|
|
uses: docker/setup-buildx-action@v3
|
|
- name: prepare variables
|
|
uses: ./.github/actions/docker-push-variables
|
|
id: ev
|
|
env:
|
|
DOCKER_USERNAME: ${{ secrets.DOCKER_USERNAME }}
|
|
with:
|
|
image-name: ghcr.io/goauthentik/dev-docs
|
|
- name: Login to Container Registry
|
|
if: ${{ steps.ev.outputs.shouldPush == 'true' }}
|
|
uses: docker/login-action@v3
|
|
with:
|
|
registry: ghcr.io
|
|
username: ${{ github.repository_owner }}
|
|
password: ${{ secrets.GITHUB_TOKEN }}
|
|
- name: Build Docker Image
|
|
id: push
|
|
uses: docker/build-push-action@v6
|
|
with:
|
|
tags: ${{ steps.ev.outputs.imageTags }}
|
|
file: website/Dockerfile
|
|
push: ${{ steps.ev.outputs.shouldPush == 'true' }}
|
|
platforms: linux/amd64,linux/arm64
|
|
context: .
|
|
cache-from: type=registry,ref=ghcr.io/goauthentik/dev-docs:buildcache
|
|
cache-to: ${{ steps.ev.outputs.shouldPush == 'true' && 'type=registry,ref=ghcr.io/goauthentik/dev-docs:buildcache,mode=max' || '' }}
|
|
- uses: actions/attest-build-provenance@v2
|
|
id: attest
|
|
if: ${{ steps.ev.outputs.shouldPush == 'true' }}
|
|
with:
|
|
subject-name: ${{ steps.ev.outputs.attestImageNames }}
|
|
subject-digest: ${{ steps.push.outputs.digest }}
|
|
push-to-registry: true
|
|
ci-website-mark:
|
|
if: always()
|
|
needs:
|
|
- lint
|
|
- test
|
|
- build
|
|
- build-container
|
|
runs-on: ubuntu-latest
|
|
steps:
|
|
- uses: re-actors/alls-green@release/v1
|
|
with:
|
|
jobs: ${{ toJSON(needs) }}
|