mirror of https://github.com/aminya/setup-cpp.git
fix: reference the latest tag in docker stages
This commit is contained in:
parent
a00d0ef0b6
commit
edca93e670
|
|
@ -1,4 +1,4 @@
|
|||
FROM setup-cpp-arch AS setup-cpp-arch-llvm
|
||||
FROM --platform=$BUILDPLATFORM setup-cpp-arch:latest AS setup-cpp-arch-llvm
|
||||
|
||||
# install llvm
|
||||
RUN node /usr/lib/setup-cpp/setup-cpp.js \
|
||||
|
|
|
|||
|
|
@ -1,4 +1,4 @@
|
|||
FROM setup-cpp-arch AS setup-cpp-arch-mingw
|
||||
FROM --platform=$BUILDPLATFORM setup-cpp-arch:latest AS setup-cpp-arch-mingw
|
||||
|
||||
# install mingw/powershell
|
||||
RUN node /usr/lib/setup-cpp/setup-cpp.js \
|
||||
|
|
|
|||
|
|
@ -1,5 +1,5 @@
|
|||
## base image
|
||||
FROM archlinux:base AS arch-nodejs
|
||||
FROM --platform=$BUILDPLATFORM archlinux:base AS arch-nodejs
|
||||
|
||||
RUN pacman -Syuu --noconfirm && \
|
||||
pacman-db-upgrade && \
|
||||
|
|
@ -10,7 +10,7 @@ RUN pacman -Syuu --noconfirm && \
|
|||
rm -rf /var/cache/pacman/pkg/* && \
|
||||
rm -rf /tmp/*
|
||||
|
||||
FROM arch-nodejs AS setup-cpp-arch
|
||||
FROM --platform=$BUILDPLATFORM arch-nodejs AS setup-cpp-arch
|
||||
|
||||
COPY "./dist/legacy" "/usr/lib/setup-cpp/"
|
||||
|
||||
|
|
|
|||
|
|
@ -1,4 +1,4 @@
|
|||
FROM setup-cpp-fedora AS setup-cpp-fedora-llvm
|
||||
FROM --platform=$BUILDPLATFORM setup-cpp-fedora:latest AS setup-cpp-fedora-llvm
|
||||
|
||||
# install llvm
|
||||
RUN node /usr/lib/setup-cpp/setup-cpp.js \
|
||||
|
|
|
|||
|
|
@ -1,4 +1,4 @@
|
|||
FROM setup-cpp-fedora AS setup-cpp-ubuntu-llvm
|
||||
FROM --platform=$BUILDPLATFORM setup-cpp-fedora:latest AS setup-cpp-fedora-mingw
|
||||
|
||||
# install mingw
|
||||
RUN node /usr/lib/setup-cpp/setup-cpp.js \
|
||||
|
|
|
|||
|
|
@ -1,5 +1,5 @@
|
|||
## base image
|
||||
FROM fedora:40 AS fedora-nodejs
|
||||
FROM --platform=$BUILDPLATFORM fedora:40 AS fedora-nodejs
|
||||
|
||||
# install nodejs
|
||||
RUN dnf -y install nodejs npm && \
|
||||
|
|
@ -7,7 +7,7 @@ RUN dnf -y install nodejs npm && \
|
|||
dnf clean all && \
|
||||
rm -rf /tmp/*
|
||||
|
||||
FROM fedora-nodejs AS setup-cpp-fedora
|
||||
FROM --platform=$BUILDPLATFORM fedora-nodejs AS setup-cpp-fedora
|
||||
|
||||
COPY "./dist/legacy" "/usr/lib/setup-cpp/"
|
||||
|
||||
|
|
|
|||
|
|
@ -1,4 +1,4 @@
|
|||
FROM setup-cpp-ubuntu AS setup-cpp-ubuntu-llvm
|
||||
FROM --platform=$BUILDPLATFORM setup-cpp-ubuntu:latest AS setup-cpp-ubuntu-llvm
|
||||
|
||||
# install llvm
|
||||
RUN node /usr/lib/setup-cpp/setup-cpp.js \
|
||||
|
|
|
|||
|
|
@ -1,4 +1,4 @@
|
|||
FROM setup-cpp-ubuntu AS setup-cpp-ubuntu-mingw
|
||||
FROM --platform=$BUILDPLATFORM setup-cpp-ubuntu:latest AS setup-cpp-ubuntu-mingw
|
||||
|
||||
# install mingw/powershell
|
||||
RUN node /usr/lib/setup-cpp/setup-cpp.js \
|
||||
|
|
|
|||
|
|
@ -1,5 +1,5 @@
|
|||
#### Base Image with Node.js
|
||||
FROM ubuntu:22.04 AS ubuntu-nodejs
|
||||
FROM --platform=$BUILDPLATFORM ubuntu:22.04 AS ubuntu-nodejs
|
||||
|
||||
# install latest nodejs
|
||||
RUN apt-get update -qq && \
|
||||
|
|
@ -15,7 +15,7 @@ RUN apt-get update -qq && \
|
|||
rm -rf /tmp/*
|
||||
|
||||
#### Base Image with Tools
|
||||
FROM ubuntu-nodejs AS setup-cpp-ubuntu
|
||||
FROM --platform=$BUILDPLATFORM ubuntu-nodejs AS setup-cpp-ubuntu
|
||||
|
||||
COPY "./dist/legacy" "/usr/lib/setup-cpp/"
|
||||
|
||||
|
|
|
|||
Loading…
Reference in New Issue