mirror of
https://github.com/TecharoHQ/anubis.git
synced 2026-02-09 05:19:24 -06:00
* fix(data): add ruleset to explicitly allow Docker / OCI clients Fixes #1252 This is technically a regression as these clients used to work in Anubis v1.22.0, however it is allowable to make this opt-in as most websites do not expect to be serving Docker / OCI registry client traffic. Signed-off-by: Xe Iaso <me@xeiaso.net> * Update metadata check-spelling run (pull_request) for Xe/gh-1252/docker-registry-client-fix Signed-off-by: check-spelling-bot <check-spelling-bot@users.noreply.github.com> on-behalf-of: @check-spelling <check-spelling-bot@check-spelling.dev> * test(docker-registry): export the right envvars Signed-off-by: Xe Iaso <me@xeiaso.net> * ci: add simdjson dependency for homebrew node Signed-off-by: Xe Iaso <me@xeiaso.net> * ci: install go/node without homebrew Signed-off-by: Xe Iaso <me@xeiaso.net> * test: use right github commit variable Signed-off-by: Xe Iaso <me@xeiaso.net> * ci: remove simdjson dependency Signed-off-by: Xe Iaso <me@xeiaso.net> * ci: install ko with an action Signed-off-by: Xe Iaso <me@xeiaso.net> * docs: add OCI registry caveat docs Signed-off-by: Xe Iaso <me@xeiaso.net> --------- Signed-off-by: Xe Iaso <me@xeiaso.net> Signed-off-by: check-spelling-bot <check-spelling-bot@users.noreply.github.com>
37 lines
614 B
Bash
Executable File
37 lines
614 B
Bash
Executable File
#!/usr/bin/env bash
|
|
|
|
set -eo pipefail
|
|
|
|
export VERSION=${GITHUB_SHA}-test
|
|
export KO_DOCKER_REPO=ko.local
|
|
|
|
set -u
|
|
|
|
source ../lib/lib.sh
|
|
|
|
build_anubis_ko
|
|
|
|
rm -rf ./var/repos ./var/foo
|
|
mkdir -p ./var/repos
|
|
|
|
(cd ./var/repos && git init --bare foo.git && cd foo.git && git config http.receivepack true)
|
|
|
|
docker compose up -d
|
|
|
|
sleep 2
|
|
|
|
(
|
|
cd var &&
|
|
mkdir foo &&
|
|
cd foo &&
|
|
git init &&
|
|
touch README &&
|
|
git add . &&
|
|
git config user.name "Anubis CI" &&
|
|
git config user.email "social+anubis-ci@techaro.lol" &&
|
|
git commit -sm "initial commit" &&
|
|
git push -u http://localhost:3000/git/foo.git master
|
|
)
|
|
|
|
exit 0
|