-
Notifications
You must be signed in to change notification settings - Fork 1
40 lines (34 loc) · 1023 Bytes
/
api-ovh.yml
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
name: API - Build Docker image & Deploy OVH
on:
push:
branches:
- feat-1469
paths:
- api/**
- packages/**
jobs:
deploy:
runs-on: ubuntu-latest
steps:
- name: Git checkout
uses: actions/checkout@v2
- name: Create SSH key
uses: ./.github/actions/ssh-key
with:
ssh_private_key: ${{ secrets.SSH_PRIVATE_KEY }}
ssh_known_hosts: ${{ secrets.SSH_KNOWN_HOSTS }}
- name: Remove git folder
run: rm -rf .git
- name: Docker Build & Publish
uses: ./.github/actions/docker
with:
username: ${{ secrets.OVH_USERNAME }}
password: ${{ secrets.OVH_PASSWORD }}
registry: ${{ secrets.OVH_REGISTRY_ENDPOINT }}
image_name: api
dockerfile_path: api/Dockerfile
# - name: Scaleway container deploy
# uses: ./.github/actions/docker-ovh-deploy
# with:
# secret_key: ${{ secrets.OVH_USERNAME }}
# container_id: container_id