mirror of
https://github.com/glanceapp/glance.git
synced 2025-06-21 18:31:24 +02:00
Update build to include openbsd and armv7
This commit is contained in:
parent
e204029d3c
commit
e78619f5e1
@ -2,9 +2,10 @@ FROM alpine:3.19
|
|||||||
|
|
||||||
ARG TARGETOS
|
ARG TARGETOS
|
||||||
ARG TARGETARCH
|
ARG TARGETARCH
|
||||||
|
ARG TARGETVARIANT
|
||||||
|
|
||||||
WORKDIR /app
|
WORKDIR /app
|
||||||
COPY build/glance-$TARGETOS-$TARGETARCH /app/glance
|
COPY build/glance-$TARGETOS-$TARGETARCH${TARGETVARIANT} /app/glance
|
||||||
|
|
||||||
EXPOSE 8080/tcp
|
EXPOSE 8080/tcp
|
||||||
ENTRYPOINT ["/app/glance"]
|
ENTRYPOINT ["/app/glance"]
|
||||||
|
@ -67,6 +67,14 @@ var buildTargets = []buildTarget{
|
|||||||
arch: "arm",
|
arch: "arm",
|
||||||
armV: 7,
|
armV: 7,
|
||||||
},
|
},
|
||||||
|
{
|
||||||
|
os: "openbsd",
|
||||||
|
arch: "amd64",
|
||||||
|
},
|
||||||
|
{
|
||||||
|
os: "openbsd",
|
||||||
|
arch: "386",
|
||||||
|
},
|
||||||
}
|
}
|
||||||
|
|
||||||
func main() {
|
func main() {
|
||||||
@ -113,7 +121,7 @@ func main() {
|
|||||||
|
|
||||||
output, err := exec.Command(
|
output, err := exec.Command(
|
||||||
"sudo", "docker", "build",
|
"sudo", "docker", "build",
|
||||||
"--platform=linux/arm64,linux/amd64",
|
"--platform=linux/amd64,linux/arm64,linux/arm/v7",
|
||||||
"-t", versionTag,
|
"-t", versionTag,
|
||||||
"-t", latestTag,
|
"-t", latestTag,
|
||||||
".",
|
".",
|
||||||
|
Loading…
x
Reference in New Issue
Block a user