-
Notifications
You must be signed in to change notification settings - Fork 0
43 lines (32 loc) · 974 Bytes
/
pr.yml
File metadata and controls
43 lines (32 loc) · 974 Bytes
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
---
name: On Pull Request
on:
workflow_dispatch:
pull_request:
jobs:
deploy-zuul:
runs-on: self-hosted
env:
ANSIBLE_FORCE_COLOR: True
ANSIBLE_VAULT_PASSWORD_FILE: .vault.txt
steps:
- uses: actions/checkout@de0fac2e4500dabe0009e67214ff5f5447ce83dd # v6.0.2
- name: Set Ansible Vault password file
run: |
echo ${{ secrets.ANSIBLE_VAULT_PASSWORD }} > $ANSIBLE_VAULT_PASSWORD_FILE
- name: Install dependencies
run: >
curl -fsSL https://raw.githubusercontent.com/helm/helm/main/scripts/get-helm-3 | bash
- name: Generate kubeconfig
env:
KUBE: ${{secrets.KUBE}}
OS_CLOUD: "smslab-stackhpc-ci"
run: |
mkdir -p ~/.kube
echo "$KUBE" > ~/.kube/config
- name: Run playbook
run: >
ansible-playbook -i ansible/inventory ansible/run.yml --check --diff -vvv
- name: Remove credentials
run: |
rm -f ~/.kube/config .vault.txt