mirror of
https://github.com/moghtech/komodo.git
synced 2026-03-11 17:44:19 -05:00
fix deploy
This commit is contained in:
@@ -1,2 +1,2 @@
|
||||
import { run } from "./run.ts";
|
||||
await run("deploy-komodo", "procedure");
|
||||
await run("deploy-komodo");
|
||||
|
||||
@@ -1,6 +1,6 @@
|
||||
import * as TOML from "@std/toml";
|
||||
|
||||
export const run = async (resource_name: string, resource_type = "action") => {
|
||||
export const run = async (action: string) => {
|
||||
const branch = await new Deno.Command("bash", {
|
||||
args: ["-c", "git rev-parse --abbrev-ref HEAD"],
|
||||
})
|
||||
@@ -39,7 +39,7 @@ echo ""
|
||||
git push
|
||||
echo ""
|
||||
|
||||
km run -y ${resource_type} ${resource_name} "KOMODO_BRANCH=${branch}&KOMODO_VERSION=${version}&KOMODO_TAG=${tag}-${next_count}"
|
||||
km run -y action ${action} "KOMODO_BRANCH=${branch}&KOMODO_VERSION=${version}&KOMODO_TAG=${tag}-${next_count}"
|
||||
`
|
||||
.split("\n")
|
||||
.map((line) => line.trim())
|
||||
|
||||
Reference in New Issue
Block a user