feat/ajout-de-fonctionnalites #2

Merged
tristan merged 46 commits from feat/ajout-de-fonctionnalites into develop 2026-04-06 14:29:04 +00:00
2 changed files with 22 additions and 0 deletions
Showing only changes of commit aa42a0ee35 - Show all commits

View File

@@ -0,0 +1,13 @@
import type { TagListResponse, DeployResult } from './dto/deploy'
export function getAvailableTags(slug: string): Promise<TagListResponse> {
return useApi().get<TagListResponse>(`/applications/${slug}/tags`, undefined, {
toast: false,
})
}
export function deploy(envId: number, tag: string): Promise<DeployResult> {
return useApi().post<DeployResult>(`/environments/${envId}/deploy`, { tag }, {
toast: false,
})
}

View File

@@ -0,0 +1,9 @@
type TagListResponse = {
tags: string[]
}
type DeployResult = {
success: boolean
output: string
tag: string
}