From f8d59c8f59e8bef20b4643a4c5179e842687fe62 Mon Sep 17 00:00:00 2001 From: merlinfuchs Date: Thu, 11 May 2023 12:11:49 +0200 Subject: [PATCH] add go build tags to workflows --- Dockerfile | 2 +- embedg-server/.goreleaser.yml | 4 ++++ 2 files changed, 5 insertions(+), 1 deletion(-) create mode 100644 embedg-server/.goreleaser.yml diff --git a/Dockerfile b/Dockerfile index 54c8d7e7d..7782404d3 100644 --- a/Dockerfile +++ b/Dockerfile @@ -11,7 +11,7 @@ RUN apt-get install -y build-essential curl RUN curl -OL https://golang.org/dl/go1.20.4.linux-amd64.tar.gz RUN tar -C /usr/local -xvf go1.20.4.linux-amd64.tar.gz ENV PATH=$PATH:/usr/local/go/bin -RUN cd embedg-server && go build && cd .. +RUN cd embedg-server && go build --tags embedapp && cd .. FROM debian:bullseye-slim WORKDIR /root/ diff --git a/embedg-server/.goreleaser.yml b/embedg-server/.goreleaser.yml new file mode 100644 index 000000000..4d7f92ff4 --- /dev/null +++ b/embedg-server/.goreleaser.yml @@ -0,0 +1,4 @@ +builds: + - binary: embedg-server + tags: + - embedapp