Use Gitea-hosted Node base image
All checks were successful
Build runner image / build (push) Successful in 17s
Test blackout notifier / test (push) Successful in 3s
Hourly blackout check / check (push) Successful in 4s

This commit is contained in:
Meghdad
2026-07-17 21:32:20 +03:30
parent 377d5d261b
commit b8d27a3298
3 changed files with 20 additions and 10 deletions

View File

@@ -13,7 +13,10 @@ jobs:
build:
runs-on: ubuntu-latest
container:
image: node:20-bookworm
image: mahgit.ir/meghdadfadaee/daily-blackout-check-base:node-20-bookworm
credentials:
username: ${{ secrets.REGISTRY_USERNAME }}
password: ${{ secrets.REGISTRY_TOKEN }}
steps:
- name: Check out repository
uses: https://gitea.com/actions/checkout@v4
@@ -55,10 +58,8 @@ jobs:
--username "$REGISTRY_USERNAME" \
--password-stdin
# The runner force-pulls this job's node:20-bookworm image before the
# job starts. Reuse that fresh host-cached image so BuildKit does not
# make a second anonymous Docker Hub token request.
DOCKER_BUILDKIT=0 docker build \
docker build \
--pull \
--label "org.opencontainers.image.revision=$revision" \
--label "org.opencontainers.image.source=https://mahgit.ir/MeghdadFadaee/daily-blackout-check" \
--tag "$candidate" \