Use Gitea-hosted Node base image
This commit is contained in:
@@ -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" \
|
||||
|
||||
Reference in New Issue
Block a user