Add secrets to docker yaml formatter
All checks were successful
build docker image / docker-build (push) Successful in 2m48s
All checks were successful
build docker image / docker-build (push) Successful in 2m48s
This commit is contained in:
@ -60,6 +60,7 @@ import { parse, stringify } from "yaml";
|
|||||||
const orderFirst = [
|
const orderFirst = [
|
||||||
// root
|
// root
|
||||||
"version",
|
"version",
|
||||||
|
"secrets",
|
||||||
"services",
|
"services",
|
||||||
|
|
||||||
// other
|
// other
|
||||||
@ -67,14 +68,14 @@ const orderFirst = [
|
|||||||
"restart",
|
"restart",
|
||||||
"environment",
|
"environment",
|
||||||
"ports",
|
"ports",
|
||||||
"volumes"
|
"volumes",
|
||||||
// ... other keys to appear first
|
// ... other keys to appear first
|
||||||
];
|
];
|
||||||
|
|
||||||
const orderLast = [
|
const orderLast = [
|
||||||
"image",
|
"image",
|
||||||
"container_name",
|
"container_name",
|
||||||
"command"
|
"command",
|
||||||
// ... other keys to appear last
|
// ... other keys to appear last
|
||||||
];
|
];
|
||||||
|
|
||||||
|
Reference in New Issue
Block a user