Skip to content
This repository has been archived by the owner on Mar 27, 2024. It is now read-only.

task: tweaking docker build to add the version number #243

Merged
merged 2 commits into from
Nov 19, 2022
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
5 changes: 2 additions & 3 deletions Dockerfile.build
Original file line number Diff line number Diff line change
@@ -1,8 +1,7 @@
FROM golang:1.18

EXPOSE 3000

ENV GOPROXY=https://proxy.golang.org
ARG DOCKER_TAG

RUN apt-get update \
&& apt-get install -y -q build-essential sqlite3 libsqlite3-dev postgresql libpq-dev vim
Expand Down Expand Up @@ -32,7 +31,7 @@ RUN curl -sfL https://install.goreleaser.com/github.com/golangci/golangci-lint.s
# Installing buffalo binary
WORKDIR /cli
ADD . .
RUN go install ./cmd/buffalo
RUN go install -ldflags="-X 'github.com/gobuffalo/cli/internal/runtime.Version=${DOCKER_TAG}'" ./cmd/buffalo

WORKDIR /
RUN go install github.com/gobuffalo/buffalo-pop/v3@latest
Expand Down
4 changes: 2 additions & 2 deletions Dockerfile.slim.build
Original file line number Diff line number Diff line change
Expand Up @@ -2,7 +2,7 @@ FROM golang:1.18-alpine

EXPOSE 3000

ENV GOPROXY=https://proxy.golang.org
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
Expand All @@ -19,7 +19,7 @@ RUN npm i -g --no-progress yarn \
# Installing buffalo binary
WORKDIR /cli
ADD . .
RUN go install ./cmd/buffalo
RUN go install -ldflags="-X 'github.com/gobuffalo/cli/internal/runtime.Version=${DOCKER_TAG}'" ./cmd/buffalo

WORKDIR /
RUN go install github.com/gobuffalo/buffalo-pop/v3@latest
Expand Down
Binary file added buffalo
Binary file not shown.
2 changes: 1 addition & 1 deletion internal/runtime/version.go
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
package runtime

// Version is the current version of the buffalo binary
var Version = "v0.18.7"
var Version = "v0.18.9"