From c981a9c64e0ebb26fea4d36a02630943d53d54ac Mon Sep 17 00:00:00 2001 From: "Jens W. Klein" Date: Thu, 16 Nov 2023 17:04:36 +0100 Subject: [PATCH] pass PACKAGE_VERSION build arg to buildx --- .github/workflows/release.yaml | 2 ++ container/Dockerfile | 1 - 2 files changed, 2 insertions(+), 1 deletion(-) diff --git a/.github/workflows/release.yaml b/.github/workflows/release.yaml index 7e15944..6017444 100644 --- a/.github/workflows/release.yaml +++ b/.github/workflows/release.yaml @@ -62,6 +62,8 @@ jobs: with: context: "{{defaultContext}}:container" platforms: linux/amd64,linux/arm64 + build-args: | + PACKAGE_VERSION=${{ steps.meta.outputs.version }} push: true tags: ${{ steps.meta.outputs.tags }} labels: ${{ steps.meta.outputs.labels }} diff --git a/container/Dockerfile b/container/Dockerfile index 7d5dc2a..50ff23b 100644 --- a/container/Dockerfile +++ b/container/Dockerfile @@ -1,7 +1,6 @@ # syntax=docker/dockerfile:1 FROM python:3.12-slim -ARG IMAGE_VERSION ARG PACKAGE_VERSION RUN <