Skip to content

Commit 517daeb

Browse files
author
Hela Bot
committed
Added policy file
1 parent f3d8bb5 commit 517daeb

File tree

2 files changed

+6
-2
lines changed

2 files changed

+6
-2
lines changed

.github/workflows/build.yml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -28,4 +28,4 @@ jobs:
2828
context: .
2929
file: ./Dockerfile
3030
push: true
31-
tags: ${{ secrets.DOCKERHUB_USERNAME }}/hela-api:v11
31+
tags: ${{ secrets.DOCKERHUB_USERNAME }}/hela-api:v12

index.js

Lines changed: 5 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -4,7 +4,7 @@ const { generateRandomString } = require('./helper/functions');
44
const { sendJobToK8S } = require('./helper/k8s');
55
const dotenv = require('dotenv').config();
66
const app = express();
7-
const port = 4001;
7+
const port = 4003;
88
app.use(express.json());
99

1010
const env = process.env;
@@ -227,6 +227,10 @@ app.get('/job-status', async (req, res) => {
227227
}
228228
});
229229

230+
app.get('/policy.yaml', (req, res) => {
231+
res.status(200).sendFile(__dirname + '/policy.yaml');
232+
});
233+
230234

231235
app.listen(port, () => {
232236
console.log(`Server is running on http://localhost:${port}`);

0 commit comments

Comments
 (0)