All checks were successful
Auto Tag Develop / tag (push) Successful in 6s
Reviewed-on: #1 Co-authored-by: tristan <tristan@yuno.malio.fr> Co-committed-by: tristan <tristan@yuno.malio.fr>
14 lines
448 B
TypeScript
14 lines
448 B
TypeScript
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,
|
|
})
|
|
}
|