From ab9b44f35ab27c5852685388f3fd5d759c552eaa Mon Sep 17 00:00:00 2001 From: Antonio Pagano Date: Tue, 6 Dec 2022 20:06:29 -0500 Subject: [PATCH] bugfix: fixing goreleaser binary match --- .goreleaser.yml | 15 +++++++-------- Dockerfile.build | 1 - Dockerfile.slim.build | 2 -- 3 files changed, 7 insertions(+), 11 deletions(-) diff --git a/.goreleaser.yml b/.goreleaser.yml index c7aabf03..6c985f7c 100644 --- a/.goreleaser.yml +++ b/.goreleaser.yml @@ -42,22 +42,21 @@ brews: name: 'homebrew-tap' install: | bin.install "buffalo" + dockers: - image_templates: - - gobuffalo/buffalo:{{ .Tag }} + - gobuffalo/buffalo:{{ .Tag }} dockerfile: 'Dockerfile.build' + goos: linux + goarch: amd64 use: docker - build_flag_templates: - - "--build-arg=DOCKER_TAG={{.Tag}}" - - image_templates: - - gobuffalo/buffalo:{{ .Tag }}-slim + - gobuffalo/buffalo:{{ .Tag }}-slim dockerfile: 'Dockerfile.slim.build' + goos: linux + goarch: amd64 use: docker - - build_flag_templates: - - "--build-arg=DOCKER_TAG={{.Tag}}" diff --git a/Dockerfile.build b/Dockerfile.build index a6c443df..06b139d9 100644 --- a/Dockerfile.build +++ b/Dockerfile.build @@ -1,7 +1,6 @@ FROM golang:1.18 EXPOSE 3000 -ARG DOCKER_TAG RUN apt-get update \ && apt-get install -y -q build-essential sqlite3 libsqlite3-dev postgresql libpq-dev vim diff --git a/Dockerfile.slim.build b/Dockerfile.slim.build index 0dbd024d..7ffda398 100644 --- a/Dockerfile.slim.build +++ b/Dockerfile.slim.build @@ -2,8 +2,6 @@ FROM golang:1.18-alpine EXPOSE 3000 -ARG DOCKER_TAG - RUN apk add --no-cache --upgrade apk-tools \ && apk add --no-cache bash curl openssl git build-base nodejs npm sqlite sqlite-dev mysql-client vim postgresql libpq postgresql-contrib libc6-compat