dont get fancy just run bash and git clone
cicd / cicd (push) Failing after 5s Details
cicd / pull (push) Successful in 5s Details

main
bel 2023-10-28 09:12:56 -06:00
parent e48614f8b5
commit fe6748a0ae
3 changed files with 11 additions and 9 deletions

View File

@ -2,8 +2,6 @@ FROM docker:24.0.7-dind-alpine3.18
RUN apk update && apk --no-cache add bash curl git
RUN mv $(which sh) /bin/sh.sh; mv $(which bash /bin/bash.sh)
COPY ./entrypoint.sh /bin/sh
COPY ./entrypoint.sh /bin/bash
RUN chmod +x /bin/sh /bin/bash
COPY ./entrypoint.sh /bin/entrypoint.sh
RUN chmod +x /bin/entrypoint.sh
ENTRYPOINT ["/bin/entrypoint.sh"]

View File

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

View File

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