fix: add createrepo.sh
All checks were successful
continuous-integration/drone/push Build is passing

This commit is contained in:
2022-05-03 12:34:29 +02:00
parent c1d6c38223
commit 903be7c5ad
2 changed files with 46 additions and 3 deletions

16
createrepo.sh Normal file
View File

@ -0,0 +1,16 @@
#!/bin/bash
set -e
CONTAINER_RUNTIME=$(which docker)
CREATEREPO_IMAGE_VERSION=0.17.2
CUSTOM_UID=$(getent passwd ${USER} | cut -d ':' -f 3)
CUSTOM_GID=$(getent passwd ${USER} | cut -d ':' -f 4)
${CONTAINER_RUNTIME} run \
--rm \
--volume ${PWD}:${PWD} \
--workdir ${PWD} \
--user ${CUSTOM_UID}:${CUSTOM_GID} \
docker.io/volkerraschek/createrepo:${CREATEREPO_IMAGE_VERSION} ${@}