Compare commits

..

2 Commits

Author SHA1 Message Date
bel
fe6748a0ae dont get fancy just run bash and git clone
Some checks failed
cicd / cicd (push) Failing after 5s
cicd / pull (push) Successful in 5s
2023-10-28 09:12:56 -06:00
bel
e48614f8b5 hijack shell to git clone 2023-10-28 09:02:48 -06:00
3 changed files with 20 additions and 2 deletions

View File

@@ -1,3 +1,7 @@
FROM docker:24.0.7-dind-alpine3.18 FROM docker:24.0.7-dind-alpine3.18
RUN apk update && apk --no-cache add bash curl git RUN apk update && apk --no-cache add bash curl git
COPY ./entrypoint.sh /bin/entrypoint.sh
RUN chmod +x /bin/entrypoint.sh
ENTRYPOINT ["/bin/entrypoint.sh"]

View File

@@ -1,6 +1,10 @@
#! /bin/sh #! /bin/sh
img=registry-app.inhome.blapointe.com:5001/docker
t=latest
docker rmi $img:$t
set -e set -e
docker build -f ./Dockerfile -t registry-app.inhome.blapointe.com:5001/docker:latest . docker build -f ./Dockerfile -t $img:$t --progress plain .
docker push registry-app.inhome.blapointe.com:5001/docker:latest docker push $img:$t

10
entrypoint.sh Normal file
View File

@@ -0,0 +1,10 @@
#! /bin/sh
set -e
if [ -n "$GITHUB_SERVER_URL" ] && [ -n "$GITHUB_REPOSITORY" ]; then
git clone "$GITHUB_SERVER_URL/$GITHUB_REPOSITORY" ./git.d
cd ./git.d
fi
exec bash "$@"