feat: add shuttle

This commit is contained in:
Kasper Juul Hermansen 2023-05-13 02:35:17 +02:00
parent a195aaeedb
commit fce518ab21
Signed by: kjuulh
GPG Key ID: 57B6E1465221F912
5 changed files with 27 additions and 1 deletions

1
.gitignore vendored Normal file
View File

@ -0,0 +1 @@
.shuttle/

20
actions/ansible.go Normal file
View 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
View File

@ -0,0 +1,3 @@
module actions
go 1.20

View File

@ -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
View File

@ -0,0 +1,3 @@
plan: false
vars:
service: clank-manage