forked from jsirianni/bindplane-gitflow-cli
-
Notifications
You must be signed in to change notification settings - Fork 0
55 lines (46 loc) · 1.52 KB
/
standard.yml
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
43
44
45
46
47
48
49
50
51
52
53
54
55
name: GitOps Workflow
on:
push:
branches:
- main
- dev
jobs:
bindplane:
runs-on: "ubuntu-22.04"
steps:
- name: Check out source code
uses: actions/checkout@v4
with:
ref: ${{ github.event.pull_request.head.sha }}
- run: rm -rf download
- run: mkdir download
- name: Install BindPlane CLI
run: |
curl -o bindplane.zip https://storage.googleapis.com/bindplane-op-releases/bindplane/latest/bindplane-ee-linux-amd64.zip
unzip bindplane.zip
sudo chmod +x bindplane
sudo mv bindplane /usr/local/bin/bindplane
working-directory: download
- name: Create Profile
run: |
bindplane profile set gitflow \
--remote-url https://app.bindplane.com \
--api-key ${{ secrets.BINDPLANE_API_KEY }}
bindplane profile use gitflow
- name: Test CLI
run: bindplane version
- name: Deploy Resources
run: |
cd gitops_workflow_standard
bash ./apply_bindplane_configs.sh
- name: Export and checkin otel
run: |
cd gitops_workflow_standard
bash ./get_bindplane_otel_configs.sh
- name: Commit and Push Changes
run: |
git config --global user.email "github-actions[bot]@users.noreply.github.com"
git config --global user.name "github-actions[bot]"
git add -A
git diff-index --quiet HEAD || git commit -m "Automated changes"
git push