From 75ec0e8de4128c01f7c1a81fc559585b20a3c99c Mon Sep 17 00:00:00 2001 From: flawa Date: Fri, 24 Nov 2023 15:09:41 +0100 Subject: [PATCH] test: github actions OVH --- .github/workflows/api-ovh.yml | 5 +++-- .github/workflows/api-scw.yml | 4 +++- api/src/index.js | 2 +- 3 files changed, 7 insertions(+), 4 deletions(-) diff --git a/.github/workflows/api-ovh.yml b/.github/workflows/api-ovh.yml index 6fcf57fb19..c7e01e0aad 100644 --- a/.github/workflows/api-ovh.yml +++ b/.github/workflows/api-ovh.yml @@ -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 }} diff --git a/.github/workflows/api-scw.yml b/.github/workflows/api-scw.yml index 586377ae47..f139fc4497 100644 --- a/.github/workflows/api-scw.yml +++ b/.github/workflows/api-scw.yml @@ -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 }} diff --git a/api/src/index.js b/api/src/index.js index 73a7bb0c32..e9d956253f 100644 --- a/api/src/index.js +++ b/api/src/index.js @@ -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) => {