To share Docker build ARGs in a multi-stage build, simply declare it globally then mention it in subsequent builds to renew.
ARG IMG=alpine:3.14.2
FROM gcr.io/kaniko-project/executor:v1.9.0-debug AS kaniko
ARG IMG
FROM ${IMG}
RUN apk --update add \