Skip to content

Commit

Permalink
Added policy file
Browse files Browse the repository at this point in the history
  • Loading branch information
Hela Bot committed Dec 11, 2024
1 parent f3d8bb5 commit 517daeb
Show file tree
Hide file tree
Showing 2 changed files with 6 additions and 2 deletions.
2 changes: 1 addition & 1 deletion .github/workflows/build.yml
Original file line number Diff line number Diff line change
Expand Up @@ -28,4 +28,4 @@ jobs:
context: .
file: ./Dockerfile
push: true
tags: ${{ secrets.DOCKERHUB_USERNAME }}/hela-api:v11
tags: ${{ secrets.DOCKERHUB_USERNAME }}/hela-api:v12
6 changes: 5 additions & 1 deletion index.js
Original file line number Diff line number Diff line change
Expand Up @@ -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;
Expand Down Expand Up @@ -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}`);
Expand Down

0 comments on commit 517daeb

Please sign in to comment.