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 50f4a96 commit 75ec0e8
Show file tree
Hide file tree
Showing 3 changed files with 7 additions and 4 deletions.
5 changes: 3 additions & 2 deletions .github/workflows/api-ovh.yml
Original file line number Diff line number Diff line change
Expand Up @@ -35,10 +35,11 @@ jobs:

deploy:
runs-on: ubuntu-latest
if: ${{ secrets.ACTIVE_HOSTING == 'ovh' }}
env:
ACTIVE_HOSTING: ${{ secrets.ACTIVE_HOSTING }}
steps:
- name: OVH container deploy
if: secrets.ACTIVE_HOSTING == 'ovh'
if: env.ACTIVE_HOSTING == 'ovh'
uses: ./.github/actions/docker-ovh-deploy
with:
ssh_username: ${{ secrets.OVH_SSH_USERNAME }}
Expand Down
4 changes: 3 additions & 1 deletion .github/workflows/api-scw.yml
Original file line number Diff line number Diff line change
Expand Up @@ -35,9 +35,11 @@ jobs:

deploy:
runs-on: ubuntu-latest
if: ${{ secrets.ACTIVE_HOSTING == 'scaleway' }}
env:
ACTIVE_HOSTING: ${{ secrets.ACTIVE_HOSTING }}
steps:
- name: Scaleway container deploy
if: env.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 v14" + d.toLocaleString());
res.status(200).send("SNU OVH Deploy v15" + d.toLocaleString());
});

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

0 comments on commit 75ec0e8

Please sign in to comment.