From 50f4a96ef23d09a5314a04559fe2c3fa4913385c Mon Sep 17 00:00:00 2001 From: flawa Date: Fri, 24 Nov 2023 15:05:40 +0100 Subject: [PATCH] test: github actions OVH --- .github/workflows/api-ovh.yml | 6 +++++- .github/workflows/api-scw.yml | 7 +++++-- api/src/index.js | 2 +- 3 files changed, 11 insertions(+), 4 deletions(-) diff --git a/.github/workflows/api-ovh.yml b/.github/workflows/api-ovh.yml index 4c90129426..6fcf57fb19 100644 --- a/.github/workflows/api-ovh.yml +++ b/.github/workflows/api-ovh.yml @@ -9,7 +9,7 @@ on: - packages/** jobs: - deploy: + build: runs-on: ubuntu-latest steps: - name: Git checkout @@ -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 diff --git a/.github/workflows/api-scw.yml b/.github/workflows/api-scw.yml index e46be15ad4..586377ae47 100644 --- a/.github/workflows/api-scw.yml +++ b/.github/workflows/api-scw.yml @@ -9,7 +9,7 @@ on: - packages/** jobs: - deploy: + build: runs-on: ubuntu-latest steps: - name: Git checkout @@ -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 }} diff --git a/api/src/index.js b/api/src/index.js index 307885e0e7..73a7bb0c32 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 v13" + d.toLocaleString()); + res.status(200).send("SNU OVH Deploy v14" + d.toLocaleString()); }); app.get("/testsentry", async (req, res) => {