+ {deploymentOptions.map(option => (
+
- >
- ) : (
- <>
-
- {deployType === 'branch' && `Start a new deployment of branch ${deployBaseRef}.`}
- {deployType === 'pullrequest' && `Start a new deployment of pull request ${deployTitle}.`}
- {deployType === 'promote' &&
- `Start a new deployment from environment ${environment.project.name}-${deployBaseRef}.`}
+ ))}
+
+
+ {selectedType === 'variables' && (
+
+
+
+
Partial Deployment Warning
+
+ Some changes will not fully apply with a variables only deployment. Runtime variables will update now. Build scoped behaviour and other changes will only take effect after a full deployment.
+
-
- >
+
)}
+
+
+
+
);
};
const DeployLatest = (props: Props | PropsWithSkeleton) => {
- if ('skeleton' in props && props.skeleton) {
- return
;
- }
return
;
};
diff --git a/src/lib/mutation/deployEnvironmentLatest.ts b/src/lib/mutation/deployEnvironmentLatest.ts
index b854fe6d..deb0d6df 100644
--- a/src/lib/mutation/deployEnvironmentLatest.ts
+++ b/src/lib/mutation/deployEnvironmentLatest.ts
@@ -1,7 +1,14 @@
import { gql } from '@apollo/client';
export default gql`
- mutation deployEnvironmentLatest($environmentId: Int!) {
- deployEnvironmentLatest(input: { environment: { id: $environmentId } })
+ mutation deployEnvironmentLatest($environmentId: Int!, $envVarOnly: String = "false") {
+ deployEnvironmentLatest(input: { environment: { id: $environmentId },
+ buildVariables: [
+ {
+ name: "LAGOON_VARIABLES_ONLY",
+ value: $envVarOnly
+ }
+ ]
+ })
}
`;