chore: add k8s and docker as service to agent and update logic for ansible deploy
ci-agent / build (push) Failing after 2m35s
ci-agent / build (push) Failing after 2m35s
This commit is contained in:
@@ -299,6 +299,12 @@ func (r *Repository) MarkRegistrationTokenUsed(token string) error {
|
||||
return nil
|
||||
}
|
||||
|
||||
// DeleteRegistrationToken deletes a registration token (used for rollback on deployment failure).
|
||||
func (r *Repository) DeleteRegistrationToken(token string) error {
|
||||
_, err := r.DB.Exec(`DELETE FROM registration_tokens WHERE token = ?`, token)
|
||||
return err
|
||||
}
|
||||
|
||||
// ActivateToken activates a user by token value.
|
||||
func (r *Repository) ActivateToken(token string) error {
|
||||
result, err := r.DB.Exec(
|
||||
|
||||
Reference in New Issue
Block a user