Skip to content

test: github actions OVH #3

test: github actions OVH

test: github actions OVH #3

Workflow file for this run

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