diff --git a/build-version-via-dockerfile.sh b/build-version-via-dockerfile.sh index 97b4e4b..178f58d 100755 --- a/build-version-via-dockerfile.sh +++ b/build-version-via-dockerfile.sh @@ -8,7 +8,6 @@ if [ $# -lt 1 ]; then fi container=$1; shift -name=harbor.k8s.ungleich.ch/ungleich-public/${container} push="" if [ $# -ge 1 ]; then @@ -16,13 +15,18 @@ if [ $# -ge 1 ]; then fi cd $container -for df in Dockerfile_*; do - version=$(echo $df | cut -d_ -f 2) - tag=${name}:${version} +for upstream in harbor.k8s.ungleich.ch/ungleich-public docker.io/ungleich; +do + name=${upstream}/${container} - docker build -t ${tag} -f ${df} . + for df in Dockerfile_*; do + version=$(echo $df | cut -d_ -f 2) + tag=${name}:${version} - if [ "$push" ]; then - docker push ${tag} - fi + docker build -t ${tag} -f ${df} . + + if [ "$push" ]; then + docker push ${tag} + fi + done done diff --git a/build.sh b/build.sh deleted file mode 100755 index d4f9eed..0000000 --- a/build.sh +++ /dev/null @@ -1,21 +0,0 @@ -#!/bin/sh - -set -exu - -if [ $# -lt 2 ]; then - echo "$0 [push]" >&2 - exit 1 -fi -container=$1; shift -version=$1; shift - -name=harbor.k8s.ungleich.ch/ungleich-public/${container} - -tag=${name}:${version} - -cd $container -docker build -t ${tag} . - -if [ "$#" -ge 1 ]; then - docker push ${tag} -fi diff --git a/key-wf/Dockerfile_20260325-1 b/key-wf/Dockerfile_20260325-1 new file mode 100644 index 0000000..4f59505 --- /dev/null +++ b/key-wf/Dockerfile_20260325-1 @@ -0,0 +1,3 @@ +FROM nginx:1-alpine3.23 + +COPY keys/* /usr/share/nginx/html diff --git a/key-wf/README.md b/key-wf/README.md new file mode 100644 index 0000000..9070887 --- /dev/null +++ b/key-wf/README.md @@ -0,0 +1,29 @@ +## key.wf + +This is a service for providing access to your public ssh key. + +## How to add your key + +Place your key in the keys/ directory, create a pull request on +https://code.ungleich.ch/ungleich-public/ungleich-containers. + +## How to get your key + +``` +curl key.wf/yourkeyname +``` + +## How to use with ssh + +``` +curl key.wf/yourkeyname >> ~/.ssh/authorized_keys +``` + +## Security warning + +This container is hosted by ungleich.ch and deployed using +kubernetes. It means that ungleich can place whatever ungleich wants +at any location. + +While me, Nico Schottelius, CEO of ungleich, considers this service +secure, you might not and you should use it with caution. diff --git a/key-wf/index.html b/key-wf/index.html new file mode 100644 index 0000000..6bc3723 --- /dev/null +++ b/key-wf/index.html @@ -0,0 +1,9 @@ + + + key.wf - ssh key distribution center + + +

key.wf - ssh key distribution center

+ This service provides access to public ssh keys. + You can add your own ssh key by following the guide + on