Skip to content

Commit

Permalink
test: github actions OVH
Browse files Browse the repository at this point in the history
  • Loading branch information
FlawaCLV committed Nov 24, 2023
1 parent bf7fd37 commit 50f4a96
Show file tree
Hide file tree
Showing 3 changed files with 11 additions and 4 deletions.
6 changes: 5 additions & 1 deletion .github/workflows/api-ovh.yml
Original file line number Diff line number Diff line change
Expand Up @@ -9,7 +9,7 @@ on:
- packages/**

jobs:
deploy:
build:
runs-on: ubuntu-latest
steps:
- name: Git checkout
Expand All @@ -33,6 +33,10 @@ jobs:
image_name: api
dockerfile_path: api/Dockerfile

deploy:
runs-on: ubuntu-latest
if: ${{ secrets.ACTIVE_HOSTING == 'ovh' }}
steps:
- name: OVH container deploy
if: secrets.ACTIVE_HOSTING == 'ovh'
uses: ./.github/actions/docker-ovh-deploy
Expand Down
7 changes: 5 additions & 2 deletions .github/workflows/api-scw.yml
Original file line number Diff line number Diff line change
Expand Up @@ -9,7 +9,7 @@ on:
- packages/**

jobs:
deploy:
build:
runs-on: ubuntu-latest
steps:
- name: Git checkout
Expand All @@ -33,8 +33,11 @@ jobs:
image_name: api
dockerfile_path: api/Dockerfile

deploy:
runs-on: ubuntu-latest
if: ${{ secrets.ACTIVE_HOSTING == 'scaleway' }}
steps:
- name: Scaleway container deploy
if: secrets.ACTIVE_HOSTING == 'scaleway'
uses: ./.github/actions/docker-scw-deploy
with:
secret_key: ${{ secrets.SCW_SECRET_KEY }}
Expand Down
2 changes: 1 addition & 1 deletion api/src/index.js
Original file line number Diff line number Diff line change
Expand Up @@ -158,7 +158,7 @@ const validateCustomHeader = require("./middlewares/validateCustomHeader");

app.get("/", async (req, res) => {
const d = new Date();
res.status(200).send("SNU OVH Deploy v13" + d.toLocaleString());
res.status(200).send("SNU OVH Deploy v14" + d.toLocaleString());
});

app.get("/testsentry", async (req, res) => {
Expand Down

0 comments on commit 50f4a96

Please sign in to comment.