Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

[Dev] Add deployment example for AI #29

Merged
merged 2 commits into from
Nov 12, 2024
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
52 changes: 51 additions & 1 deletion .github/workflows/ci.yaml
Original file line number Diff line number Diff line change
@@ -1,10 +1,60 @@
name: CI
name: CI Pipeline
on:
push:
branches: [main]
pull_request:
branches: [main]
jobs:
shellcheck:
name: runner / shellcheck
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@v4
- name: shellcheck
uses: reviewdog/action-shellcheck@v1
with:
github_token: ${{ secrets.github_token }}
reporter: github-pr-review # Change reporter.
path: "." # Optional.
pattern: "*.sh" # Optional.
exclude: "./.git/*" # Optional.
check_all_files_with_shebangs: "false" # Optional.
# 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 .
- 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
Loading