ci: support rc

This commit is contained in:
Denis Gukov 2024-12-22 03:30:52 +05:00
parent c2a3e022ac
commit 518d6a379c
No known key found for this signature in database
GPG Key ID: 044381366A5D4731
3 changed files with 4 additions and 2 deletions

View File

@ -4,6 +4,7 @@ name: Release
push: push:
tags: tags:
- 'v[0-9]+.[0-9]+.[0-9]+' - 'v[0-9]+.[0-9]+.[0-9]+'
- v*-rc*
jobs: jobs:
release: release:

View File

@ -128,7 +128,8 @@ func (t *TerraformApp) init(environmentVars []string, params *db.TerraformTaskPa
s := strings.TrimSpace(msg) s := strings.TrimSpace(msg)
if strings.Contains(s, "Do you want to copy ") { if strings.Contains(s, "Do you want to copy ") {
t.Logger.SetStatus(task_logger.TaskWaitingConfirmation) t.Logger.SetStatus(task_logger.TaskWaitingConfirmation)
} else if strings.Contains(msg, "has been successfully initialized!") { } else if strings.Contains(msg, "has been successfully initialized!") ||
strings.Contains(msg, "Error:") {
t.reader.EOF = true t.reader.EOF = true
} }
}) })

View File

@ -109,7 +109,7 @@
<script> <script>
const APP_PARAMS = { const APP_PARAMS = {
terraform: ['plan', 'auto_approve', 'destroy', 'migrate_state'], terraform: ['plan', 'auto_approve', 'destroy', 'reconfigure'],
tofu: ['plan', 'auto_approve', 'destroy', 'reconfigure'], tofu: ['plan', 'auto_approve', 'destroy', 'reconfigure'],
ansible: ['diff', 'debug', 'dry_run'], ansible: ['diff', 'debug', 'dry_run'],
}; };