Skip to content

Commit

Permalink
feat: ci.yml k8s deploy job added
Browse files Browse the repository at this point in the history
feat: ci.yml k8s deploy job added
  • Loading branch information
puleugo authored Jan 11, 2024
2 parents 2778a50 + fb98d71 commit 93e0572
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 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

0 comments on commit 93e0572

Please sign in to comment.