lightscale-admin/.forgejo/workflows/build-local-image.yml
centra e4d95b660d
All checks were successful
build-local-image / build (push) Successful in 4m58s
Retry docker build in Forgejo workflow for transient pulls
2026-02-14 15:54:19 +09:00

27 lines
618 B
YAML

name: build-local-image
on:
push:
branches:
- main
workflow_dispatch:
jobs:
build:
runs-on: nix-host
steps:
- name: Build local image on runner host
run: |
set -euo pipefail
for i in 1 2 3; do
if docker build --pull -t lightscale-admin:local "https://git.centraworks.net/centra/lightscale-admin.git#${GITHUB_SHA}"; then
exit 0
fi
if [ "$i" -lt 3 ]; then
sleep 10
fi
done
exit 1
- name: Show built image
run: docker image ls lightscale-admin:local