From f9f7656404e35ff45417c6025fb5f22e4c524f0d Mon Sep 17 00:00:00 2001 From: w13b3 Date: Sat, 6 Apr 2024 22:24:13 +0200 Subject: [PATCH] :wine_glass: --- Dockerfile.redbean-alpine | 5 +++-- Dockerfile.redbean-build | 4 ++-- Dockerfile.redbean-scratch | 5 +++-- Makefile | 38 ++++++++++++++++++++++++++++---------- 4 files changed, 36 insertions(+), 16 deletions(-) diff --git a/Dockerfile.redbean-alpine b/Dockerfile.redbean-alpine index 10b37e3..d7c26a5 100644 --- a/Dockerfile.redbean-alpine +++ b/Dockerfile.redbean-alpine @@ -1,10 +1,11 @@ # syntax=docker/dockerfile:1 # # FROM args +ARG GIT_REPO_OWNER=none +ARG BUILD_TAG=latest ARG ALPINE_TAG=3.19.1 -ARG IMAGE_TAG=latest # # build image -FROM redbean-build:${IMAGE_TAG} AS build +FROM ghcr.io/${GIT_REPO_OWNER}/redbean-build:${BUILD_TAG} AS build # # final image FROM docker.io/library/alpine:${ALPINE_TAG} AS final diff --git a/Dockerfile.redbean-build b/Dockerfile.redbean-build index fea85ab..d3a0833 100644 --- a/Dockerfile.redbean-build +++ b/Dockerfile.redbean-build @@ -1,9 +1,9 @@ # syntax=docker/dockerfile:1 # # FROM args -ARG DEBIAN_TAG=bookworm-20240311-slim +ARG BUILD_DEBIAN_TAG=bookworm-20240311-slim # # # build stage -FROM docker.io/library/debian:${DEBIAN_TAG} AS build +FROM docker.io/library/debian:${BUILD_DEBIAN_TAG} AS build # # environment variables ENV LANG=C.UTF-8 diff --git a/Dockerfile.redbean-scratch b/Dockerfile.redbean-scratch index 5c82477..e694c61 100644 --- a/Dockerfile.redbean-scratch +++ b/Dockerfile.redbean-scratch @@ -1,9 +1,10 @@ # syntax=docker/dockerfile:1 # # FROM args -ARG IMAGE_TAG=latest +ARG GIT_REPO_OWNER=none +ARG BUILD_TAG=latest # # build image -FROM redbean-build:${IMAGE_TAG} AS build +FROM ghcr.io/${GIT_REPO_OWNER}/redbean-build:${BUILD_TAG} AS build # # normalize the binary to ELF RUN --network=none <