Skip to content

Merge pull request #86 from betagouv/maud/tags_fixes #94

Merge pull request #86 from betagouv/maud/tags_fixes

Merge pull request #86 from betagouv/maud/tags_fixes #94

Workflow file for this run

name: Scalingo
on:
push:
branches:
- staging
- production
jobs:
scalingo:
runs-on: ubuntu-latest
steps:
- name: Checkout code
uses: actions/checkout@v4
with:
fetch-depth: 0
- name: Add SSH key
uses: webfactory/[email protected]
with:
ssh-private-key: ${{ secrets.SCALINGO_SSH_PRIVATE_KEY }}
- name: Update known hosts
run: ssh-keyscan -H ssh.osc-fr1.scalingo.com >> ~/.ssh/known_hosts
- name: Update known hosts
run: ssh-keyscan -H ssh.osc-secnum-fr1.scalingo.com >> ~/.ssh/known_hosts
- name: Push to Scalingo
run: |
git push ${{ github.ref == 'refs/heads/production' && secrets.SCALINGO_PRODUCTION_REMOTE || secrets.SCALINGO_STAGING_REMOTE }} \
${{ github.ref == 'refs/heads/production' && 'production' || 'staging' }}:master