build: arm v7 (#26)
This commit is contained in:
4
.github/workflows/build.yml
vendored
4
.github/workflows/build.yml
vendored
@@ -118,7 +118,7 @@ jobs:
|
||||
with:
|
||||
context: .
|
||||
file: ./docker/Dockerfile
|
||||
platforms: linux/amd64,linux/arm64
|
||||
platforms: linux/amd64,linux/arm64,linux/arm/v7
|
||||
pull: true
|
||||
push: true
|
||||
tags: |
|
||||
@@ -147,7 +147,7 @@ jobs:
|
||||
with:
|
||||
context: .
|
||||
file: ./docker/Dockerfile
|
||||
platforms: linux/amd64,linux/arm64
|
||||
platforms: linux/amd64,linux/arm64,linux/arm/v7
|
||||
pull: true
|
||||
push: true
|
||||
tags: |
|
||||
|
||||
@@ -14,6 +14,9 @@ builds:
|
||||
goarch:
|
||||
- amd64
|
||||
- arm64
|
||||
- arm
|
||||
goarm:
|
||||
- 7
|
||||
ldflags:
|
||||
- -s -w
|
||||
- -X "main.Version={{ .Version }}"
|
||||
@@ -25,7 +28,7 @@ builds:
|
||||
# Archive
|
||||
archives:
|
||||
-
|
||||
name_template: "{{ .ProjectName }}_v{{ .Version }}_{{ .Os }}_{{ .Arch }}"
|
||||
name_template: "{{ .ProjectName }}_v{{ .Version }}_{{ .Os }}_{{ .Arch }}{{ if .Arm }}v{{ .Arm }}{{ end }}{{ if .Mips }}_{{ .Mips }}{{ end }}"
|
||||
format: "binary"
|
||||
|
||||
# Checksum
|
||||
|
||||
@@ -2,6 +2,7 @@ FROM sc4h/alpine-s6overlay:3.12
|
||||
|
||||
ARG TARGETOS
|
||||
ARG TARGETARCH
|
||||
ARG TARGETVARIANT
|
||||
|
||||
ENV \
|
||||
PATH="/app/nabarr:${PATH}" \
|
||||
@@ -11,7 +12,7 @@ ENV \
|
||||
APP_VERBOSITY="0"
|
||||
|
||||
# Binary
|
||||
COPY ["dist/nabarr_${TARGETOS}_${TARGETARCH}/nabarr", "/app/nabarr/nabarr"]
|
||||
COPY ["dist/nabarr_${TARGETOS}_${TARGETARCH}${TARGETVARIANT:+_7}/nabarr", "/app/nabarr/nabarr"]
|
||||
|
||||
# Add root files
|
||||
COPY ["docker/run", "/etc/services.d/nabarr/run"]
|
||||
|
||||
Reference in New Issue
Block a user