Skip to content

test: github actions OVH #18

test: github actions OVH

test: github actions OVH #18

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: OVH container deploy
if: ${{ secrets.ACTIVE_HOSTING == 'ovh' }}

Check failure on line 37 in .github/workflows/api-ovh.yml

View workflow run for this annotation

GitHub Actions / API - Build Docker image & Deploy OVH

Invalid workflow file

The workflow is not valid. .github/workflows/api-ovh.yml (Line: 37, Col: 13): Unrecognized named-value: 'secrets'. Located at position 1 within expression: secrets.ACTIVE_HOSTING == 'ovh'
uses: ./.github/actions/docker-ovh-deploy
with:
ssh_username: ${{ secrets.OVH_SSH_USERNAME }}
ssh_host: ${{ secrets.OVH_SSH_HOST }}
ssh_private_key: ${{ secrets.OVH_SSH_PRIVATE_KEY }}
registry: ${{ secrets.OVH_REGISTRY_ENDPOINT }}
username: ${{ secrets.OVH_USERNAME }}
password: ${{ secrets.OVH_PASSWORD }}
image_name: api