-
-
Notifications
You must be signed in to change notification settings - Fork 1k
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Merge branch 'main' into web/replace-rollup-with-esbuild
* main: (75 commits) Add missing commas, correction of spelling errors (#8680) website/docs: Add documentation for Glitchtip (#8182) website: add solve gitea group does not take effect (#8413) enterprise: fix read_only activating when no license is installed (#8697) core: fix blueprint export (#8695) web: bump the sentry group in /web with 1 update (#8687) web: bump yaml from 2.3.4 to 2.4.0 in /web (#8689) web: bump the eslint group in /web with 1 update (#8688) core: bump pytest from 8.0.1 to 8.0.2 (#8693) website: bump @types/react from 18.2.57 to 18.2.58 in /website (#8690) web: bump the eslint group in /tests/wdio with 1 update (#8691) core: bump sentry-sdk from 1.40.4 to 1.40.5 (#8692) core: bump coverage from 7.4.1 to 7.4.3 (#8694) providers/oauth2: fix inconsistent `sub` value when setting via mapping (#8677) translate: Updates for file locale/en/LC_MESSAGES/django.po in zh_CN (#8678) translate: Updates for file locale/en/LC_MESSAGES/django.po in zh-Hans (#8679) core, web: update translations (#8672) root: fix config loading after refactor during ruff migration (#8674) root: early spring clean for linting (#8498) website/integrations: multiple integration edits (#7923) ...
- Loading branch information
Showing
349 changed files
with
8,532 additions
and
6,757 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,59 @@ | ||
"""Helper script to get the actual branch name, docker safe""" | ||
|
||
import configparser | ||
import os | ||
from time import time | ||
|
||
parser = configparser.ConfigParser() | ||
parser.read(".bumpversion.cfg") | ||
|
||
branch_name = os.environ["GITHUB_REF"] | ||
if os.environ.get("GITHUB_HEAD_REF", "") != "": | ||
branch_name = os.environ["GITHUB_HEAD_REF"] | ||
safe_branch_name = branch_name.replace("refs/heads/", "").replace("/", "-") | ||
|
||
image_names = os.getenv("IMAGE_NAME").split(",") | ||
image_arch = os.getenv("IMAGE_ARCH") or None | ||
|
||
is_pull_request = bool(os.getenv("PR_HEAD_SHA")) | ||
is_release = "dev" not in image_names[0] | ||
|
||
sha = os.environ["GITHUB_SHA"] if not is_pull_request else os.getenv("PR_HEAD_SHA") | ||
|
||
# 2042.1.0 or 2042.1.0-rc1 | ||
version = parser.get("bumpversion", "current_version") | ||
# 2042.1 | ||
version_family = ".".join(version.split("-", 1)[0].split(".")[:-1]) | ||
prerelease = "-" in version | ||
|
||
image_tags = [] | ||
if is_release: | ||
for name in image_names: | ||
image_tags += [ | ||
f"{name}:{version}", | ||
] | ||
if not prerelease: | ||
image_tags += [ | ||
f"{name}:latest", | ||
f"{name}:{version_family}", | ||
] | ||
else: | ||
suffix = "" | ||
if image_arch and image_arch != "amd64": | ||
suffix = f"-{image_arch}" | ||
for name in image_names: | ||
image_tags += [ | ||
f"{name}:gh-{sha}{suffix}", # Used for ArgoCD and PR comments | ||
f"{name}:gh-{safe_branch_name}{suffix}", # For convenience | ||
f"{name}:gh-{safe_branch_name}-{int(time())}-{sha[:7]}{suffix}", # Use by FluxCD | ||
] | ||
|
||
image_main_tag = image_tags[0] | ||
image_tags_rendered = ",".join(image_tags) | ||
|
||
with open(os.environ["GITHUB_OUTPUT"], "a+", encoding="utf-8") as _output: | ||
print("sha=%s" % sha, file=_output) | ||
print("version=%s" % version, file=_output) | ||
print("prerelease=%s" % prerelease, file=_output) | ||
print("imageTags=%s" % image_tags_rendered, file=_output) | ||
print("imageMainTag=%s" % image_main_tag, file=_output) |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,7 @@ | ||
#!/bin/bash -x | ||
SCRIPT_DIR=$( cd -- "$( dirname -- "${BASH_SOURCE[0]}" )" &> /dev/null && pwd ) | ||
GITHUB_OUTPUT=/dev/stdout \ | ||
GITHUB_REF=ref \ | ||
GITHUB_SHA=sha \ | ||
IMAGE_NAME=ghcr.io/goauthentik/server,beryju/authentik \ | ||
python $SCRIPT_DIR/push_vars.py |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file was deleted.
Oops, something went wrong.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Oops, something went wrong.