From 17676fa13bf025297d1104fc39528b16397ebcb0 Mon Sep 17 00:00:00 2001 From: Lakhan Samani Date: Sun, 10 Oct 2021 00:28:44 +0530 Subject: [PATCH] fix: docker build version arg --- .github/workflows/release.yaml | 2 ++ Dockerfile | 5 +++-- 2 files changed, 5 insertions(+), 2 deletions(-) diff --git a/.github/workflows/release.yaml b/.github/workflows/release.yaml index 5317af8..cd6a939 100644 --- a/.github/workflows/release.yaml +++ b/.github/workflows/release.yaml @@ -70,3 +70,5 @@ jobs: push: true tags: ${{ steps.meta.outputs.tags }} labels: ${{ steps.meta.outputs.labels }} + build-args: | + "VERSION=${VERSION}" diff --git a/Dockerfile b/Dockerfile index 843c48c..430f6fc 100644 --- a/Dockerfile +++ b/Dockerfile @@ -3,12 +3,13 @@ WORKDIR /app COPY server server COPY Makefile . -ARG VERSION=0.1.0-beta.0 +ARG VERSION ENV VERSION="${VERSION}" RUN apk add build-base &&\ make clean && make && \ - chmod 777 build/server + chmod 777 build/server && \ + echo "$VERSION" FROM alpine:latest RUN apk --no-cache add ca-certificates