Name update
This commit is contained in:
@@ -1,5 +1,5 @@
|
||||
#!/usr/bin/env bash
|
||||
# build-and-publish-unraid.sh — one-shot: clone PXEForge, build the image,
|
||||
# build-and-publish-unraid.sh — one-shot: clone OpenPXE, build the image,
|
||||
# push it to your local Gitea container registry. Run this ON the Unraid
|
||||
# box (or any host that can reach Gitea on http://localhost:3000 or its
|
||||
# LAN IP). No Cloudflare in the way; the proxy doesn't matter for this
|
||||
@@ -10,31 +10,31 @@
|
||||
# GITEA_HOST default: localhost:3000 (use 192.168.1.49:3000 if
|
||||
# you're on the LAN but not on the Unraid host)
|
||||
# GITEA_OWNER default: mward4
|
||||
# GITEA_REPO default: PXEForge
|
||||
# GITEA_REPO default: OpenPXE
|
||||
# IMAGE_TAG default: 0.1.0 (also tagged :latest)
|
||||
# PLATFORM default: linux/amd64 (Unraid is x86_64)
|
||||
# WORKDIR default: /tmp/pxeforge-build (deleted on success)
|
||||
# WORKDIR default: /tmp/openpxe-build (deleted on success)
|
||||
#
|
||||
# What it does:
|
||||
# 1. git clone <gitea>/mward4/PXEForge.git into WORKDIR
|
||||
# 1. git clone <gitea>/mward4/OpenPXE.git into WORKDIR
|
||||
# 2. fetch iPXE binaries (scripts/fetch-ipxe.sh)
|
||||
# 3. docker build deploy/docker/Dockerfile -> pxeforge:$TAG (and :latest)
|
||||
# 3. docker build deploy/docker/Dockerfile -> openpxe:$TAG (and :latest)
|
||||
# 4. docker login to GITEA_HOST using the token
|
||||
# 5. docker push to <gitea>/<owner>/pxeforge:<tag> and :latest
|
||||
# 5. docker push to <gitea>/<owner>/openpxe:<tag> and :latest
|
||||
# 6. docker logout, scrub creds, clean WORKDIR
|
||||
#
|
||||
# After this, on any Unraid Docker template, set:
|
||||
# Repository: <gitea>/mward4/pxeforge:0.1.0 (or :latest)
|
||||
# Repository: <gitea>/mward4/openpxe:0.1.0 (or :latest)
|
||||
# Network: host (DHCP/TFTP need raw L2)
|
||||
|
||||
set -euo pipefail
|
||||
|
||||
GITEA_HOST=${GITEA_HOST:-localhost:3000}
|
||||
GITEA_OWNER=${GITEA_OWNER:-mward4}
|
||||
GITEA_REPO=${GITEA_REPO:-PXEForge}
|
||||
GITEA_REPO=${GITEA_REPO:-OpenPXE}
|
||||
IMAGE_TAG=${IMAGE_TAG:-0.1.0}
|
||||
PLATFORM=${PLATFORM:-linux/amd64}
|
||||
WORKDIR=${WORKDIR:-/tmp/pxeforge-build}
|
||||
WORKDIR=${WORKDIR:-/tmp/openpxe-build}
|
||||
|
||||
# Lowercase the image name — OCI distribution rejects uppercase paths.
|
||||
IMAGE_NAME="$(printf '%s' "$GITEA_REPO" | tr '[:upper:]' '[:lower:]')"
|
||||
|
||||
Reference in New Issue
Block a user