Skip to content

Commit

Permalink
[Dev] Add deployment example for AI
Browse files Browse the repository at this point in the history
  • Loading branch information
lshmouse committed Nov 12, 2024
1 parent d11142e commit 95dd216
Show file tree
Hide file tree
Showing 43 changed files with 945 additions and 41 deletions.
37 changes: 37 additions & 0 deletions .github/workflows/ci.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -5,6 +5,43 @@ on:
pull_request:
branches: [main]
jobs:
# see: https://github.com/marketplace?type=actions
# see: https://github.com/google/yamlfmt
yamlfmt:
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@v4
# - name: yamllint
# uses: reviewdog/action-yamllint@v1
# with:
# github_token: ${{ secrets.github_token }}
# fail_on_error: true
- name: yamlfmt
uses: yk-lab/[email protected]
# see: https://github.com/google/autoyapf
pyfmt:
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@master
with:
ref: ${{ github.head_ref }}
- name: autoyapf
id: autoyapf
uses: mritunjaysharma394/autoyapf@v2
with:
args: --style pep8 --recursive --in-place .
fail_on_error: true
- name: Check for modified files
id: git-check
run: echo ::set-output name=modified::$(if git diff-index --quiet HEAD --; then echo "false"; else echo "true"; fi)
- name: Push changes
if: steps.git-check.outputs.modified == 'true'
run: |
git config --local user.email "<githubusername>@users.noreply.github.com"
git config --local user.name "Python formatterBot"
git remote set-url origin https://x-access-token:${{ secrets.GITHUB_TOKEN }}@github.com/${{ github.repository }}
git commit -am "Automated autoyapf fixes"
git push
ci:
runs-on: ubuntu-latest
steps:
Expand Down
1 change: 1 addition & 0 deletions deployment/backstage/.gitignore
Original file line number Diff line number Diff line change
@@ -0,0 +1 @@
backstage*
18 changes: 18 additions & 0 deletions deployment/backstage/README.md
Original file line number Diff line number Diff line change
@@ -0,0 +1,18 @@
## backstage

### Deployment
```
helm pull --untar backstage --repo https://backstage.github.io/charts
```

```
helm upgrade -i --create-namespace backstage backstage -f values.yaml --namespace backstage
```

### Upgrade
```
helm diff backstage backstage -f values.yaml --namespace backstage
```

### References
- https://github.com/backstage/charts
Loading

0 comments on commit 95dd216

Please sign in to comment.