From 517daeb2814e73da36762cfc4f1c54781bd569ee Mon Sep 17 00:00:00 2001 From: Hela Bot Date: Wed, 11 Dec 2024 17:56:46 +0530 Subject: [PATCH] Added policy file --- .github/workflows/build.yml | 2 +- index.js | 6 +++++- 2 files changed, 6 insertions(+), 2 deletions(-) diff --git a/.github/workflows/build.yml b/.github/workflows/build.yml index ec11a50..7bc3af8 100644 --- a/.github/workflows/build.yml +++ b/.github/workflows/build.yml @@ -28,4 +28,4 @@ jobs: context: . file: ./Dockerfile push: true - tags: ${{ secrets.DOCKERHUB_USERNAME }}/hela-api:v11 + tags: ${{ secrets.DOCKERHUB_USERNAME }}/hela-api:v12 diff --git a/index.js b/index.js index 0993381..7987a1f 100644 --- a/index.js +++ b/index.js @@ -4,7 +4,7 @@ const { generateRandomString } = require('./helper/functions'); const { sendJobToK8S } = require('./helper/k8s'); const dotenv = require('dotenv').config(); const app = express(); -const port = 4001; +const port = 4003; app.use(express.json()); const env = process.env; @@ -227,6 +227,10 @@ app.get('/job-status', async (req, res) => { } }); +app.get('/policy.yaml', (req, res) => { + res.status(200).sendFile(__dirname + '/policy.yaml'); +}); + app.listen(port, () => { console.log(`Server is running on http://localhost:${port}`);