build.sh does its own prune
Some checks failed
cicd / pull (push) Successful in 4s
cicd / cicd (push) Failing after 3s

This commit is contained in:
bel
2023-10-28 09:20:12 -06:00
parent bca4f22eef
commit 3d2f3a92a5
2 changed files with 11 additions and 16 deletions

View File

@@ -11,12 +11,7 @@ jobs:
steps:
- name: pull
run: |
was=$(docker images | grep registry-app.inhome.blapointe.com:5001/docker:latest | awk '{print $3}')
docker pull registry-app.inhome.blapointe.com:5001/docker:latest
new=$(docker images | grep registry-app.inhome.blapointe.com:5001/docker:latest | awk '{print $3}')
if [ "$was" != "$new" ]; then
docker rmi "$was"
fi
shell: sh
cicd:
name: cicd
@@ -24,20 +19,11 @@ jobs:
steps:
- name: cicd
run: |
was=$(docker images | grep registry-app.inhome.blapointe.com:5001/docker:latest | awk '{print $3}')
pwd
ls
find . -type d
ps aux www
echo clone ${{ gitea.repository }}
git clone ${{ gitea.repository }}
cd ./*/
which git
if ! sh ./build.sh; then
exit 1
fi
new=$(docker images | grep registry-app.inhome.blapointe.com:5001/docker:latest | awk '{print $3}')
if [ "$was" != "$new" ]; then
docker rmi "$was"
fi