mirror of
https://github.com/netbirdio/netbird.git
synced 2025-04-01 11:46:39 +02:00
Enable CGO in goreleaser for management (#657)
Update the debug docker image file update goreleaser version Install and reference CGO OS deps
This commit is contained in:
parent
793e4f1f29
commit
5e3502bb83
5
.github/workflows/release.yml
vendored
5
.github/workflows/release.yml
vendored
@ -10,7 +10,7 @@ on:
|
|||||||
|
|
||||||
env:
|
env:
|
||||||
SIGN_PIPE_VER: "v0.0.4"
|
SIGN_PIPE_VER: "v0.0.4"
|
||||||
GORELEASER_VER: "v1.6.3"
|
GORELEASER_VER: "v1.14.1"
|
||||||
|
|
||||||
jobs:
|
jobs:
|
||||||
release:
|
release:
|
||||||
@ -57,7 +57,8 @@ jobs:
|
|||||||
with:
|
with:
|
||||||
username: netbirdio
|
username: netbirdio
|
||||||
password: ${{ secrets.DOCKER_TOKEN }}
|
password: ${{ secrets.DOCKER_TOKEN }}
|
||||||
|
- name: Install OS build dependencies
|
||||||
|
run: sudo apt update && sudo apt install -y -q gcc-arm-linux-gnueabihf gcc-aarch64-linux-gnu
|
||||||
-
|
-
|
||||||
name: Run GoReleaser
|
name: Run GoReleaser
|
||||||
uses: goreleaser/goreleaser-action@v2
|
uses: goreleaser/goreleaser-action@v2
|
||||||
|
@ -32,7 +32,13 @@ builds:
|
|||||||
|
|
||||||
- id: netbird-mgmt
|
- id: netbird-mgmt
|
||||||
dir: management
|
dir: management
|
||||||
env: [CGO_ENABLED=0]
|
env:
|
||||||
|
- CGO_ENABLED=1
|
||||||
|
- >-
|
||||||
|
{{- if eq .Runtime.Goos "linux" }}
|
||||||
|
{{- if eq .Arch "arm64"}}CC=aarch64-linux-gnu-gcc{{- end }}
|
||||||
|
{{- if eq .Arch "arm"}}CC=arm-linux-gnueabihf-gcc{{- end }}
|
||||||
|
{{- end }}
|
||||||
binary: netbird-mgmt
|
binary: netbird-mgmt
|
||||||
goos:
|
goos:
|
||||||
- linux
|
- linux
|
||||||
|
@ -1,4 +1,5 @@
|
|||||||
FROM gcr.io/distroless/base:debug
|
FROM ubuntu:22.04
|
||||||
|
RUN apt update && apt install -y ca-certificates && rm -fr /var/cache/apt
|
||||||
ENTRYPOINT [ "/go/bin/netbird-mgmt","management","--log-level","debug"]
|
ENTRYPOINT [ "/go/bin/netbird-mgmt","management","--log-level","debug"]
|
||||||
CMD ["--log-file", "console"]
|
CMD ["--log-file", "console"]
|
||||||
COPY netbird-mgmt /go/bin/netbird-mgmt
|
COPY netbird-mgmt /go/bin/netbird-mgmt
|
||||||
|
Loading…
Reference in New Issue
Block a user