From 50e42fc8df767981c1df40dc3e601c6ef63afaea Mon Sep 17 00:00:00 2001 From: flkhndlr Date: Tue, 18 Jul 2023 21:51:51 +0200 Subject: [PATCH] enable CGO_ENABLED=0 --- .goreleaser.yml | 29 +++-------------------------- goreleaser.dockerfile | 2 +- 2 files changed, 4 insertions(+), 27 deletions(-) diff --git a/.goreleaser.yml b/.goreleaser.yml index 932bd31..c383925 100644 --- a/.goreleaser.yml +++ b/.goreleaser.yml @@ -1,34 +1,11 @@ -#gitlab_urls: -# api: https://git.mms-support.de/api/v4 -# download: https://git.mms-support.de -# -# # set to true if you use a self-signed certificate -# skip_tls_verify: false -# -# # set to true if you want to upload to the Package Registry rather than attachments -# # Only works with GitLab 13.5+ -# # -# # Since: v1.3 -# use_package_registry: true -# -# # Set this if you set GITLAB_TOKEN to the value of CI_JOB_TOKEN. -# # -# # Default: false -# # Since: v1.11 -# use_job_token: false - -# project_name: grafiport -# dockers: -# - -# image_templates: -# - "7001-02/{{.ProjectName}}" -# dockerfile: goreleaser.dockerfile +project_name: grafiport +builds: + - env: [CGO_ENABLED=0] dockers: - goos: linux goarch: amd64 - goamd64: "v2" dockerfile: goreleaser.dockerfile image_templates: - 'ghcr.io/telekom-mms/grafiport:{{ .Tag }}' diff --git a/goreleaser.dockerfile b/goreleaser.dockerfile index c19e308..bf1079f 100644 --- a/goreleaser.dockerfile +++ b/goreleaser.dockerfile @@ -1,5 +1,5 @@ # final stage -FROM ubuntu:latest +FROM alpine:latest COPY grafiport /usr/local/bin/grafiport RUN mkdir -p /output ENV DIRECTORY /output