chore: Don't hardcode versions in Dockerfiles and workflows (#2291)

This commit is contained in:
Ayaz Salikhov
2025-07-03 11:53:53 +01:00
committed by GitHub
parent cc506fd094
commit 687b1e8887
5 changed files with 42 additions and 20 deletions

View File

@@ -1,16 +1,14 @@
ARG UBUNTU_VERSION=20.04
ARG GCC_MAJOR_VERSION=12
ARG GCC_MAJOR_VERSION=invalid
FROM ubuntu:$UBUNTU_VERSION AS build
ARG UBUNTU_VERSION
ARG GCC_MAJOR_VERSION
ARG GCC_MINOR_VERSION=3
ARG GCC_PATCH_VERSION=0
ARG GCC_VERSION=${GCC_MAJOR_VERSION}.${GCC_MINOR_VERSION}.${GCC_PATCH_VERSION}
ARG BUILD_VERSION=6
ARG BUILD_VERSION=7
ARG DEBIAN_FRONTEND=noninteractive
ARG TARGETARCH
@@ -27,6 +25,8 @@ RUN apt-get update \
&& apt-get clean \
&& rm -rf /var/lib/apt/lists/*
ARG GCC_VERSION
WORKDIR /
RUN wget --progress=dot:giga https://gcc.gnu.org/pub/gcc/releases/gcc-$GCC_VERSION/gcc-$GCC_VERSION.tar.gz \
&& tar xf gcc-$GCC_VERSION.tar.gz