From fc85c2330633fc1c0f7825f557c23a4c95239c79 Mon Sep 17 00:00:00 2001 From: stuzer05 Date: Thu, 30 Jan 2025 15:53:16 +0200 Subject: [PATCH] Add secrets to docker yaml formatter --- src/views/yaml/Formatter.vue | 5 +++-- 1 file changed, 3 insertions(+), 2 deletions(-) diff --git a/src/views/yaml/Formatter.vue b/src/views/yaml/Formatter.vue index 194fce6..1dfd909 100644 --- a/src/views/yaml/Formatter.vue +++ b/src/views/yaml/Formatter.vue @@ -60,6 +60,7 @@ import { parse, stringify } from "yaml"; const orderFirst = [ // root "version", + "secrets", "services", // other @@ -67,14 +68,14 @@ const orderFirst = [ "restart", "environment", "ports", - "volumes" + "volumes", // ... other keys to appear first ]; const orderLast = [ "image", "container_name", - "command" + "command", // ... other keys to appear last ];