Skip to content

Commit

Permalink
Run task build in Dockerfile w/ variables
Browse files Browse the repository at this point in the history
Instead of having environment variables.
  • Loading branch information
sibucan committed Oct 31, 2024
1 parent 79fcbab commit 54d3ea3
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions Dockerfile
Original file line number Diff line number Diff line change
Expand Up @@ -17,8 +17,8 @@ RUN sh -c "$(curl --location https://taskfile.dev/install.sh)" -- -d -b /usr/loc
# Cache go mod dependencies to speed up repeated builds
RUN --mount=type=cache,id=${GOCACHE},target=/root/.cache/go-build \
--mount=type=cache,id=${GOMODCACHE},target=/go/pkg/mod \
VERSION=${VERSION} REVISION=${REVISION} BUILDTIME=${BUILDTIME} \
task build
task build \
VERSION=${VERSION} REVISION=${REVISION} BUILDTIME=${BUILDTIME}

FROM scratch

Expand Down

0 comments on commit 54d3ea3

Please sign in to comment.