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

Commit

Permalink
Merge pull request #243 from gobuffalo/task-updating-version-number
Browse files Browse the repository at this point in the history
task: tweaking docker build to add the version number
  • Loading branch information
sio4 authored Nov 19, 2022
2 parents 365023a + 3cab540 commit 1bcddd6
Show file tree
Hide file tree
Showing 4 changed files with 5 additions and 6 deletions.
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"

0 comments on commit 1bcddd6

Please sign in to comment.