From f87813ad3da2abcfae05144f87e07bc998824691 Mon Sep 17 00:00:00 2001 From: David Zager Date: Wed, 18 Oct 2023 14:06:57 -0400 Subject: [PATCH] :bug: use base image when building for release (#379) Signed-off-by: David Zager --- .github/workflows/image-build.yaml | 3 +++ 1 file changed, 3 insertions(+) diff --git a/.github/workflows/image-build.yaml b/.github/workflows/image-build.yaml index 7f7f9be9..772f5e22 100644 --- a/.github/workflows/image-build.yaml +++ b/.github/workflows/image-build.yaml @@ -20,6 +20,9 @@ jobs: registry: "quay.io/konveyor" image_name: "analyzer-lsp" containerfile: "./Dockerfile" + pre_build_cmd: | + TAG=${GITHUB_REF_NAME/main/latest} + sed -i 's,FROM quay.io/konveyor/jdtls-server-base,FROM quay.io/konveyor/jdtls-server-base:${TAG},' Dockerfile architectures: '[ "amd64", "arm64", "ppc64le", "s390x" ]' secrets: registry_username: ${{ secrets.QUAY_PUBLISH_ROBOT }}