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 0158f4d commit 1302f49
Show file tree
Hide file tree
Showing 5 changed files with 14 additions and 10 deletions.
8 changes: 5 additions & 3 deletions .github/workflows/admin-scw.yml
Original file line number Diff line number Diff line change
Expand Up @@ -3,7 +3,7 @@ name: ADMIN - Build Docker image & Deploy Scaleway
on:
push:
branches:
- feat-1469
- main
paths:
- admin/**
- packages/**
Expand All @@ -30,6 +30,8 @@ jobs:
strategy:
matrix:
node-version: [18.x]
env:
ACTIVE_HOSTING: ${{ secrets.ACTIVE_HOSTING }}

steps:
- uses: actions/checkout@v2
Expand All @@ -46,8 +48,7 @@ jobs:
ssh_known_hosts: ${{ secrets.SSH_KNOWN_HOSTS }}

- name: Remove git folder
run: |
rm -rf .git
run: rm -rf .git

- name: Docker Build & Publish
uses: ./.github/actions/docker
Expand All @@ -59,6 +60,7 @@ jobs:
dockerfile_path: admin/Dockerfile

- 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 .github/workflows/api-ovh.yml
Original file line number Diff line number Diff line change
Expand Up @@ -3,7 +3,7 @@ name: API - Build Docker image & Deploy OVH
on:
push:
branches:
- feat-1469
- main
paths:
- api/**
- packages/**
Expand Down
4 changes: 2 additions & 2 deletions .github/workflows/api-scw.yml
Original file line number Diff line number Diff line change
Expand Up @@ -3,13 +3,13 @@ name: API - Build Docker image & Deploy Scaleway
on:
push:
branches:
- feat-1469
- main
paths:
- api/**
- packages/**

jobs:
build:
build_deploy:
runs-on: ubuntu-latest
env:
ACTIVE_HOSTING: ${{ secrets.ACTIVE_HOSTING }}
Expand Down
8 changes: 5 additions & 3 deletions .github/workflows/app-scw.yml
Original file line number Diff line number Diff line change
Expand Up @@ -3,7 +3,7 @@ name: APP - Build Docker image & Deploy Scaleway
on:
push:
branches:
- feat-1469
- main
paths:
- app/**
- packages/**
Expand All @@ -30,6 +30,8 @@ jobs:
strategy:
matrix:
node-version: [18.x]
env:
ACTIVE_HOSTING: ${{ secrets.ACTIVE_HOSTING }}

steps:
- uses: actions/checkout@v2
Expand All @@ -46,8 +48,7 @@ jobs:
ssh_known_hosts: ${{ secrets.SSH_KNOWN_HOSTS }}

- name: Remove git folder
run: |
rm -rf .git
run: rm -rf .git

- name: Docker Build & Publish
uses: ./.github/actions/docker
Expand All @@ -59,6 +60,7 @@ jobs:
dockerfile_path: app/Dockerfile

- 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 v16" + d.toLocaleString());
res.status(200).send("SNU " + d.toLocaleString());
});

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

0 comments on commit 1302f49

Please sign in to comment.