diff --git a/.gitea/workflows/cicd.yaml b/.gitea/workflows/cicd.yaml index 90697a1..1217be4 100644 --- a/.gitea/workflows/cicd.yaml +++ b/.gitea/workflows/cicd.yaml @@ -8,12 +8,12 @@ on: - 'src/**' jobs: - cicd: - name: cicd + ci: + name: ci runs-on: dind steps: - name: checkout uses: actions/checkout@v3 - - name: cicd + - name: ci run: | bash ./build/build.sh diff --git a/build/build.sh b/build/build.sh index 598fa36..5fdb0db 100644 --- a/build/build.sh +++ b/build/build.sh @@ -10,4 +10,5 @@ now=$(docker inspect $img | jq -r .[0].Id | sed 's/^sha256://') docker push $img if [ -n "$was" ] && [ "$was" != "$now" ] && docker inspect "$was" &> /dev/null; then docker rmi "$was" || true + docker rmi $(docker ps | grep ${img%:*} | grep '' | awk '{print $3}') || true fi diff --git a/todo.yaml b/todo.yaml index 6e3a48c..580295f 100755 --- a/todo.yaml +++ b/todo.yaml @@ -1,5 +1,6 @@ todo: - cd including run +- clean ui for /transactions.html scheduled: [] done: - todo: balances over time window