more updates
Publish Action Image / build (push) Successful in 24s
Publish Action Image / publish (push) Successful in 27s

This commit is contained in:
2026-06-29 16:29:16 +10:00
parent 8a2225bf08
commit 1881ea2e99
2 changed files with 8 additions and 4 deletions
+4 -4
View File
@@ -74,6 +74,10 @@ func writeDeployJobs(b *strings.Builder, cfg *config.KforgeConfig, opts GiteaAct
"with": map[string]any{"fetch-depth": 0},
})
writeStep(b, "Create short SHA", map[string]any{
"run": `echo "SHORT_SHA=$(git rev-parse --short HEAD)" >> $GITHUB_ENV`,
})
writeStep(b, "Login to registry", map[string]any{
"uses": "docker/login-action@v2",
"with": map[string]any{
@@ -129,10 +133,6 @@ func writeActionDeploySteps(b *strings.Builder, cfg *config.KforgeConfig, opts G
// writeInlineDeploySteps emits the classic multi-step inline approach.
func writeInlineDeploySteps(b *strings.Builder, cfg *config.KforgeConfig, opts GiteaActionsOptions) {
writeStep(b, "Create short commit hash", map[string]any{
"run": `echo "SHORT_SHA=$(git rev-parse --short HEAD)" >> $GITHUB_ENV`,
})
writeStep(b, "Install kforge", map[string]any{
"run": "KFORGE_VERSION=\"latest\"\ncurl -fsSL \"https://kforge/releases/download/${KFORGE_VERSION}/kforge-linux-amd64\" -o /usr/local/bin/kforge\nchmod +x /usr/local/bin/kforge",
})