This commit is contained in:
@@ -29,4 +29,18 @@ jobs:
|
||||
push: true
|
||||
tags: |
|
||||
satitprompunjai/lms-backend:latest
|
||||
satitprompunjai/lms-backend:${{ gitea.sha }}
|
||||
satitprompunjai/lms-backend:${{ gitea.sha }}
|
||||
|
||||
- name: Update image tag in lms-k8s
|
||||
env:
|
||||
GITEA_TOKEN: ${{ secrets.GIT_TOKEN }}
|
||||
run: |
|
||||
git clone https://$GIT_TOKEN@gitea.panmodel.com/admin/lms-k8s.git
|
||||
cd lms-k8s
|
||||
|
||||
sed -i "s|satitprompunjai/lms-backend:.*|satitprompunjai/lms-backend:${{ github.sha }}|g" apps/backend/deployment.yaml
|
||||
|
||||
git config user.name "lms-backend-ci"
|
||||
git config user.email "ci@panmodel.com"
|
||||
git commit -am "chore: update lms-backend image to ${{ github.sha }}"
|
||||
git push
|
||||
|
||||
Reference in New Issue
Block a user