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

feat: ci.yml k8s deploy job added #3

Merged
merged 2 commits into from
Jan 11, 2024
Merged
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
30 changes: 30 additions & 0 deletions .github/workflows/ci.yml
Original file line number Diff line number Diff line change
Expand Up @@ -60,3 +60,33 @@ jobs:
labels: ${{ steps.meta.outputs.labels }}
cache-from: type=gha
cache-to: type=gha,mode=max

kubernetes-resource-update:
name: Kubernetes resource update
runs-on: ubuntu-latest
needs: build

steps:
- name: Setup Kustomize
uses: imranismail/setup-kustomize@v1

- name: Checkout kustomize repo
uses: actions/checkout@v2
with:
repository: inje-megabrain/megabrain-infra-apps
ref: apps/megabrain-site
token: ${{ secrets.REPO_ACCESS_TOKEN }}

- name: Update Kubernetes resource
run: |
cd apps/megabrain-site/overlays/dev
kustomize edit set image ghcr.io/inje-megabrain/megabrain.kr:lastest
cat kustomization.yaml

- name: Commit and push changes
run: |
cd apps/megabrain-site
git config --global user.name puleugo
git config --global user.email [email protected]
git commit -am "Update k8s image"
git push -u origin apps/megabrain-site
Loading