diff --git a/.github/workflows/release.yml b/.github/workflows/release.yml index 942e819a..d824e5d1 100644 --- a/.github/workflows/release.yml +++ b/.github/workflows/release.yml @@ -69,6 +69,8 @@ jobs: labels: ${{ steps.meta.outputs.labels }} cache-from: type=gha cache-to: type=gha,mode=max + build-args: | + APP_VERSION=${{ steps.meta.outputs.tags }} # Sign the resulting Docker image digest except on PRs. # This will only write to the public Rekor transparency log when the Docker diff --git a/Dockerfile b/Dockerfile index 5c6fe271..3954ca6a 100644 --- a/Dockerfile +++ b/Dockerfile @@ -1,4 +1,7 @@ FROM ruby:3.3.2-slim +ARG DOCKER_TAG +ENV APP_VERSION=$DOCKER_TAG + RUN apt-get update && apt-get install -y git supervisor build-essential zlib1g-dev libpq-dev curl # throw errors if Gemfile has been modified since Gemfile.lock diff --git a/config/version.rb b/config/version.rb index c5685089..1a4af021 100644 --- a/config/version.rb +++ b/config/version.rb @@ -2,6 +2,6 @@ module Box def self.version - "1.3.32" + ENV["APP_VERSION"].to_s end end