feat: add shuttle
This commit is contained in:
parent
a195aaeedb
commit
fce518ab21
1
.gitignore
vendored
Normal file
1
.gitignore
vendored
Normal file
@ -0,0 +1 @@
|
|||||||
|
.shuttle/
|
20
actions/ansible.go
Normal file
20
actions/ansible.go
Normal file
@ -0,0 +1,20 @@
|
|||||||
|
package main
|
||||||
|
|
||||||
|
import (
|
||||||
|
"context"
|
||||||
|
"log"
|
||||||
|
"os"
|
||||||
|
"os/exec"
|
||||||
|
)
|
||||||
|
|
||||||
|
func Ansible(ctx context.Context) error {
|
||||||
|
log.Printf("running ansible playbook\n")
|
||||||
|
|
||||||
|
cmd := exec.Command("ansible-playbook", "site.yml")
|
||||||
|
|
||||||
|
cmd.Stdout = os.Stdout
|
||||||
|
cmd.Stdin = os.Stdin
|
||||||
|
cmd.Stderr = os.Stderr
|
||||||
|
|
||||||
|
return cmd.Run()
|
||||||
|
}
|
3
actions/go.mod
Normal file
3
actions/go.mod
Normal file
@ -0,0 +1,3 @@
|
|||||||
|
module actions
|
||||||
|
|
||||||
|
go 1.20
|
@ -1,4 +1,3 @@
|
|||||||
|
|
||||||
- name: Clone private Git repository
|
- name: Clone private Git repository
|
||||||
git:
|
git:
|
||||||
repo: https://git:{{ git_token }}@git.front.kjuulh.io/kjuulh/renovate.git
|
repo: https://git:{{ git_token }}@git.front.kjuulh.io/kjuulh/renovate.git
|
||||||
|
3
shuttle.yaml
Normal file
3
shuttle.yaml
Normal file
@ -0,0 +1,3 @@
|
|||||||
|
plan: false
|
||||||
|
vars:
|
||||||
|
service: clank-manage
|
Loading…
Reference in New Issue
Block a user