mirror of
https://github.com/awatertrevi/infisical.git
synced 2026-10-08 07:27:43 +00:00
Add back health check and fix json file not found
This commit is contained in:
@@ -19,21 +19,21 @@ jobs:
|
|||||||
with:
|
with:
|
||||||
username: ${{ secrets.DOCKERHUB_USERNAME }}
|
username: ${{ secrets.DOCKERHUB_USERNAME }}
|
||||||
password: ${{ secrets.DOCKERHUB_TOKEN }}
|
password: ${{ secrets.DOCKERHUB_TOKEN }}
|
||||||
# - name: 📦 Build backend and export to Docker
|
- name: 📦 Build backend and export to Docker
|
||||||
# uses: docker/build-push-action@v3
|
uses: docker/build-push-action@v3
|
||||||
# with:
|
with:
|
||||||
# load: true
|
load: true
|
||||||
# context: backend
|
context: backend
|
||||||
# tags: infisical/backend:test
|
tags: infisical/backend:test
|
||||||
# - name: ⏻ Spawn backend container and dependencies
|
- name: ⏻ Spawn backend container and dependencies
|
||||||
# run: |
|
run: |
|
||||||
# docker compose -f .github/resources/docker-compose.be-test.yml up --wait --quiet-pull
|
docker compose -f .github/resources/docker-compose.be-test.yml up --wait --quiet-pull
|
||||||
# - name: 🧪 Test backend image
|
- name: 🧪 Test backend image
|
||||||
# run: |
|
run: |
|
||||||
# ./.github/resources/healthcheck.sh infisical-backend-test
|
./.github/resources/healthcheck.sh infisical-backend-test
|
||||||
# - name: ⏻ Shut down backend container and dependencies
|
- name: ⏻ Shut down backend container and dependencies
|
||||||
# run: |
|
run: |
|
||||||
# docker compose -f .github/resources/docker-compose.be-test.yml down
|
docker compose -f .github/resources/docker-compose.be-test.yml down
|
||||||
- name: 🏗️ Build backend and push
|
- name: 🏗️ Build backend and push
|
||||||
uses: docker/build-push-action@v3
|
uses: docker/build-push-action@v3
|
||||||
with:
|
with:
|
||||||
|
|||||||
+2
-2
@@ -8,8 +8,8 @@ RUN npm ci --only-production --ignore-scripts
|
|||||||
|
|
||||||
COPY . .
|
COPY . .
|
||||||
|
|
||||||
# HEALTHCHECK --interval=10s --timeout=3s --start-period=10s \
|
HEALTHCHECK --interval=10s --timeout=3s --start-period=10s \
|
||||||
# CMD node healthcheck.js
|
CMD node healthcheck.js
|
||||||
|
|
||||||
|
|
||||||
CMD ["npm", "run", "start"]
|
CMD ["npm", "run", "start"]
|
||||||
|
|||||||
@@ -34,7 +34,7 @@
|
|||||||
"prepare": "cd .. && npm install",
|
"prepare": "cd .. && npm install",
|
||||||
"start": "npm run build && node build/index.js",
|
"start": "npm run build && node build/index.js",
|
||||||
"dev": "nodemon",
|
"dev": "nodemon",
|
||||||
"build": "rimraf ./build && tsc && cp -R ./src/templates ./src/json ./build",
|
"build": "rimraf ./build && tsc && cp -R ./src/templates ./build",
|
||||||
"lint": "eslint . --ext .ts",
|
"lint": "eslint . --ext .ts",
|
||||||
"lint-and-fix": "eslint . --ext .ts --fix",
|
"lint-and-fix": "eslint . --ext .ts --fix",
|
||||||
"lint-staged": "lint-staged"
|
"lint-staged": "lint-staged"
|
||||||
|
|||||||
Reference in New Issue
Block a user