Compare commits

...

23 Commits

Author SHA1 Message Date
Bel LaPointe
f8286fd627 pull or ok
All checks were successful
cicd / pull (push) Successful in 5s
cicd / cicd (push) Successful in 33s
2025-05-25 12:27:44 -06:00
Bel LaPointe
1d9627f24c rename
Some checks failed
cicd / pull (push) Failing after 6s
cicd / cicd (push) Successful in 16s
2025-05-25 12:22:11 -06:00
Bel LaPointe
01ca1e6919 build weekly
All checks were successful
cicd / pull (push) Successful in 11s
cicd / cicd (push) Successful in 1m31s
2025-05-25 12:21:04 -06:00
bel
cbe863eede jq pls
All checks were successful
cicd / pull (push) Successful in 9s
cicd / cicd (push) Successful in 28s
2023-10-28 09:39:04 -06:00
bel
eff7fd01ca complete i think
All checks were successful
cicd / pull (push) Successful in 4s
cicd / cicd (push) Successful in 10s
2023-10-28 09:24:37 -06:00
bel
52d41e9b68 pull
Some checks failed
cicd / pull (push) Successful in 8s
cicd / cicd (push) Failing after 31s
2023-10-28 09:23:41 -06:00
bel
a89ebbf558 give up
Some checks failed
cicd / cicd (push) Failing after 7s
2023-10-28 09:22:11 -06:00
bel
80d07b2cba no cmd
Some checks failed
cicd / pull (push) Successful in 5s
cicd / cicd (push) Failing after 3s
2023-10-28 09:20:58 -06:00
bel
3d2f3a92a5 build.sh does its own prune
Some checks failed
cicd / pull (push) Successful in 4s
cicd / cicd (push) Failing after 3s
2023-10-28 09:20:12 -06:00
bel
bca4f22eef different debug
Some checks failed
cicd / pull (push) Successful in 6s
cicd / cicd (push) Failing after 5s
2023-10-28 09:14:41 -06:00
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
bel
dceb23de17 debug
Some checks failed
cicd / pull (push) Successful in 6s
cicd / cicd (push) Failing after 4s
2023-10-28 08:57:38 -06:00
bel
678da5b580 debug
Some checks failed
cicd / pull (push) Successful in 6s
cicd / cicd (push) Failing after 5s
2023-10-28 08:55:38 -06:00
bel
b4d98055a6 checkout
Some checks failed
cicd / pull (push) Successful in 5s
cicd / cicd (push) Failing after 4s
2023-10-28 08:55:07 -06:00
bel
04ae24e7df de-debug
Some checks failed
cicd / pull (push) Successful in 5s
cicd / cicd (push) Failing after 4s
2023-10-28 08:53:52 -06:00
bel
4ffc9fbd1a clean
Some checks failed
cicd / pull (push) Successful in 5s
cicd / cicd (push) Failing after 4s
2023-10-28 08:53:08 -06:00
bel
93e4a92c9d split
Some checks failed
cicd / pull (push) Successful in 4s
cicd / cicd (push) Failing after 4s
2023-10-28 08:51:41 -06:00
bel
8cb02d788a o
Some checks failed
cicd / cicd (push) Failing after 23s
2023-10-28 08:50:17 -06:00
bel
546730b639 debug
Some checks failed
cicd / cicd (push) Failing after 5s
2023-10-28 08:47:51 -06:00
bel
4b0dafc6ac i do NOT want node for checkout
Some checks failed
cicd / cicd (push) Failing after 4s
2023-10-28 08:46:24 -06:00
bel
d6a2d3269c try actions/checkout@v3
Some checks failed
cicd / cicd (push) Failing after 16s
2023-10-28 08:45:02 -06:00
bel
b970d4b6fa install git 2023-10-28 08:41:44 -06:00
4 changed files with 46 additions and 6 deletions

View File

@@ -3,14 +3,31 @@ on:
push: push:
branches: branches:
- main - main
schedule:
- cron: '2 2 * * 0'
jobs: jobs:
pull:
name: pull
runs-on: dind
steps:
- name: pull
run: |
docker pull registry-app.inhome.blapointe.com:5001/bel/dind:latest || true
shell: sh
cicd: cicd:
name: cicd name: cicd
runs-on: dind runs-on: dind
steps: steps:
- run: | - name: checkout
uses: actions/checkout@v3
- name: cicd
run: |
pwd pwd
ls
find . -type d find . -type d
sh ./build.sh ps aux www
shell: sh which git
if ! sh ./build.sh; then
exit 1
fi

View File

@@ -1,3 +1,3 @@
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 RUN apk update && apk --no-cache add bash curl git nodejs npm jq

View File

@@ -1,6 +1,19 @@
#! /bin/sh #! /bin/sh
img=registry-app.inhome.blapointe.com:5001/bel/dind
t=latest
set -e set -e
docker build -f ./Dockerfile -t registry-app.inhome.blapointe.com:5001/docker:latest . get_sha() {
docker push registry-app.inhome.blapointe.com:5001/docker:latest docker inspect $img:$t | grep '"Id"' | awk '{print $NF}' | sed 's/^"sha256://' | sed 's/",$//'
}
was=$(get_sha)
docker build -f ./Dockerfile -t $img:$t .
docker push $img:$t
now=$(get_sha)
if [ -n "$was" ] && [ "$was" != "$now" ]; then
echo pruning old $was
docker rmi "$was" || true
fi

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 "$@"