mirror of
https://github.com/Dokploy/dokploy
synced 2025-06-26 18:27:59 +00:00
feat: scope to dockerfile buildtype
This commit is contained in:
@@ -92,30 +92,32 @@ export const ShowEnvironment = ({ applicationId }: Props) => {
|
|||||||
/>
|
/>
|
||||||
</form>
|
</form>
|
||||||
</Form>
|
</Form>
|
||||||
<Form {...buildArgsForm}>
|
{data?.buildType === "dockerfile" && (
|
||||||
<form onSubmit={buildArgsForm.handleSubmit(onBuildArgsSubmit)}>
|
<Form {...buildArgsForm}>
|
||||||
<Secrets
|
<form onSubmit={buildArgsForm.handleSubmit(onBuildArgsSubmit)}>
|
||||||
name="buildArgs"
|
<Secrets
|
||||||
isLoading={saveBuildArgsMutation.isLoading}
|
name="buildArgs"
|
||||||
title="Build-time Variables"
|
isLoading={saveBuildArgsMutation.isLoading}
|
||||||
description={
|
title="Build-time Variables"
|
||||||
<span>
|
description={
|
||||||
Available only at build-time. See documentation
|
<span>
|
||||||
<a
|
Available only at build-time. See documentation
|
||||||
className="text-primary"
|
<a
|
||||||
href="https://docs.docker.com/build/guide/build-args/"
|
className="text-primary"
|
||||||
target="_blank"
|
href="https://docs.docker.com/build/guide/build-args/"
|
||||||
rel="noopener noreferrer"
|
target="_blank"
|
||||||
>
|
rel="noopener noreferrer"
|
||||||
here
|
>
|
||||||
</a>
|
here
|
||||||
.
|
</a>
|
||||||
</span>
|
.
|
||||||
}
|
</span>
|
||||||
placeholder="NPM_TOKEN=xyz"
|
}
|
||||||
/>
|
placeholder="NPM_TOKEN=xyz"
|
||||||
</form>
|
/>
|
||||||
</Form>
|
</form>
|
||||||
|
</Form>
|
||||||
|
)}
|
||||||
</div>
|
</div>
|
||||||
);
|
);
|
||||||
};
|
};
|
||||||
|
|||||||
Reference in New Issue
Block a user