Skip to content

Commit

Permalink
feat: ci.yml k8s deploy job added
Browse files Browse the repository at this point in the history
  • Loading branch information
Hoon9901 authored Jan 11, 2024
1 parent 2778a50 commit 259ed74
Showing 1 changed file with 30 additions and 0 deletions.
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 <image name:version tage here>
cat kustomization.yaml
- name: Commit and push changes
run: |
cd apps/megabrain-site
git config --global user.name <Your Git Username>
git config --global user.email <Your Git Email>
git commit -am "Update k8s image"
git push -u origin apps/megabrain-site

0 comments on commit 259ed74

Please sign in to comment.