Merge pull request 'fixes on ci-cd' (#78) from Dev into production
Reviewed-on: #78
This commit was merged in pull request #78.
This commit is contained in:
@@ -63,12 +63,19 @@ jobs:
|
|||||||
frontend-build-and-deploy:
|
frontend-build-and-deploy:
|
||||||
name: Build & Deploy ERP Core Frontend
|
name: Build & Deploy ERP Core Frontend
|
||||||
runs-on: linux
|
runs-on: linux
|
||||||
|
|
||||||
if: github.event.pull_request.merged == true
|
if: github.event.pull_request.merged == true
|
||||||
steps:
|
steps:
|
||||||
|
- name: Checkout code
|
||||||
|
run: |
|
||||||
|
rm -rf /tmp/erpcore-frontend-src
|
||||||
|
git clone \
|
||||||
|
--depth 1 \
|
||||||
|
--branch production \
|
||||||
|
https://oauth2:${{ secrets.ERPCORE }}@gitea.hexdive.com/New_REP_SYSTEM/ERP-core.git \
|
||||||
|
/tmp/erpcore-frontend-src
|
||||||
|
|
||||||
- name: Build frontend Docker image
|
- name: Build frontend Docker image
|
||||||
working-directory: .gitea/workflows
|
run: docker build -t erpcore-frontend:latest /tmp/erpcore-frontend-src/Frontend/erp-system
|
||||||
run: docker build -t erpcore-frontend:latest ../../Frontend/erp-system
|
|
||||||
|
|
||||||
- name: Stop & remove existing frontend container
|
- name: Stop & remove existing frontend container
|
||||||
run: |
|
run: |
|
||||||
|
|||||||
Reference in New Issue
Block a user