packaging: fix failed to solve: arm64v8/golang:1.22-bookworm
This commit is contained in:
parent
2178580a75
commit
b692768730
2 changed files with 18 additions and 20 deletions
18
Makefile
18
Makefile
|
@ -6,7 +6,7 @@ BUILD_DATE := `date +%FT%T%z`
|
||||||
LD_FLAGS := "-s -w -X 'miniflux.app/v2/internal/version.Version=$(VERSION)' -X 'miniflux.app/v2/internal/version.Commit=$(COMMIT)' -X 'miniflux.app/v2/internal/version.BuildDate=$(BUILD_DATE)'"
|
LD_FLAGS := "-s -w -X 'miniflux.app/v2/internal/version.Version=$(VERSION)' -X 'miniflux.app/v2/internal/version.Commit=$(COMMIT)' -X 'miniflux.app/v2/internal/version.BuildDate=$(BUILD_DATE)'"
|
||||||
PKG_LIST := $(shell go list ./... | grep -v /vendor/)
|
PKG_LIST := $(shell go list ./... | grep -v /vendor/)
|
||||||
DB_URL := postgres://postgres:postgres@localhost/miniflux_test?sslmode=disable
|
DB_URL := postgres://postgres:postgres@localhost/miniflux_test?sslmode=disable
|
||||||
DEB_IMG_ARCH := amd64
|
DOCKER_PLATFORM := amd64
|
||||||
|
|
||||||
export PGPASSWORD := postgres
|
export PGPASSWORD := postgres
|
||||||
|
|
||||||
|
@ -163,15 +163,15 @@ rpm: clean
|
||||||
rpmbuild -bb --define "_miniflux_version $(VERSION)" /root/rpmbuild/SPECS/miniflux.spec
|
rpmbuild -bb --define "_miniflux_version $(VERSION)" /root/rpmbuild/SPECS/miniflux.spec
|
||||||
|
|
||||||
debian:
|
debian:
|
||||||
@ docker build --load \
|
@ docker buildx build --load \
|
||||||
--build-arg BASE_IMAGE_ARCH=$(DEB_IMG_ARCH) \
|
--platform linux/$(DOCKER_PLATFORM) \
|
||||||
-t $(DEB_IMG_ARCH)/miniflux-deb-builder \
|
-t miniflux-deb-builder \
|
||||||
-f packaging/debian/Dockerfile \
|
-f packaging/debian/Dockerfile \
|
||||||
.
|
.
|
||||||
@ docker run --rm \
|
@ docker run --rm --platform linux/$(DOCKER_PLATFORM) \
|
||||||
-v ${PWD}:/pkg $(DEB_IMG_ARCH)/miniflux-deb-builder
|
-v ${PWD}:/pkg miniflux-deb-builder
|
||||||
|
|
||||||
debian-packages: clean
|
debian-packages: clean
|
||||||
$(MAKE) debian DEB_IMG_ARCH=amd64
|
$(MAKE) debian DOCKER_PLATFORM=amd64
|
||||||
$(MAKE) debian DEB_IMG_ARCH=arm64v8
|
$(MAKE) debian DOCKER_PLATFORM=arm64
|
||||||
$(MAKE) debian DEB_IMG_ARCH=arm32v7
|
$(MAKE) debian DOCKER_PLATFORM=arm/v7
|
||||||
|
|
|
@ -1,6 +1,4 @@
|
||||||
ARG BASE_IMAGE_ARCH="amd64"
|
FROM docker.io/golang:1.22-bookworm AS build
|
||||||
|
|
||||||
FROM ${BASE_IMAGE_ARCH}/golang:1.22-bookworm AS build
|
|
||||||
|
|
||||||
ENV DEBIAN_FRONTEND=noninteractive
|
ENV DEBIAN_FRONTEND=noninteractive
|
||||||
|
|
||||||
|
|
Loading…
Reference in a new issue