dont get fancy just run bash and git clone
parent
e48614f8b5
commit
fe6748a0ae
|
|
@ -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"]
|
||||
|
|
|
|||
8
build.sh
8
build.sh
|
|
@ -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
|
||||
|
|
|
|||
|
|
@ -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 "$@"
|
||||
|
|
|
|||
Loading…
Reference in New Issue