Skip to content

test: github actions OVH #33

test: github actions OVH

test: github actions OVH #33

Workflow file for this run

name: API - Build Docker image & Deploy Scaleway
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: nologin
password: ${{ secrets.SCW_SECRET_KEY }}
registry: ${{ secrets.SCW_CONTAINER_REGISTRY_ENDPOINT }}
image_name: api
dockerfile_path: api/Dockerfile
- name: Scaleway container deploy
uses: ./.github/actions/docker-scw-deploy
with:
secret_key: ${{ secrets.SCW_SECRET_KEY }}
container_id: ${{ secrets.SCW_API_CONTAINER_ID }}