Skip to content

Commit

Permalink
chore: deploy the main branch instead of github-action-deploy
Browse files Browse the repository at this point in the history
  • Loading branch information
MKCG committed Mar 5, 2024
1 parent 236ca2b commit 365b9f4
Showing 1 changed file with 3 additions and 3 deletions.
6 changes: 3 additions & 3 deletions .github/workflows/deploy.yml
Original file line number Diff line number Diff line change
Expand Up @@ -2,7 +2,7 @@ name: Deploy cluster

on:
push:
branches: [github-action-deploy]
branches: [main]
workflow_dispatch:

jobs:
Expand Down Expand Up @@ -33,7 +33,7 @@ jobs:
SSH_HOST: ${{ secrets[matrix.host] }}

- name: Deploy to staging
run: ssh -i ./deploy.key www-data@$SSH_HOST 'python3 /opt/scripts/app-deploy-release/deploy.py /opt/git/releases/annuaire-entreprises-search-api https://github.com/etalab/annuaire-entreprises-search-api.git api --version github-action-deploy --versions_to_keep=5 1> >(tee --append /var/log/deploy_annuaire-entreprises-search-api)'
run: ssh -i ./deploy.key www-data@$SSH_HOST 'python3 /opt/scripts/app-deploy-release/deploy.py /opt/git/releases/annuaire-entreprises-search-api https://github.com/etalab/annuaire-entreprises-search-api.git api --version main --versions_to_keep=5 1> >(tee --append /var/log/deploy_annuaire-entreprises-search-api)'
env:
SSH_HOST: ${{ secrets[matrix.host] }}

Expand Down Expand Up @@ -75,7 +75,7 @@ jobs:
SSH_HOST: ${{ secrets[matrix.host] }}

- name: Deploy to production
run: ssh -i ./deploy.key www-data@$SSH_HOST 'python3 /opt/scripts/app-deploy-release/deploy.py /opt/git/releases/annuaire-entreprises-search-api https://github.com/etalab/annuaire-entreprises-search-api.git api --version github-action-deploy --versions_to_keep=5 1> >(tee --append /var/log/deploy_annuaire-entreprises-search-api)'
run: ssh -i ./deploy.key www-data@$SSH_HOST 'python3 /opt/scripts/app-deploy-release/deploy.py /opt/git/releases/annuaire-entreprises-search-api https://github.com/etalab/annuaire-entreprises-search-api.git api --version main --versions_to_keep=5 1> >(tee --append /var/log/deploy_annuaire-entreprises-search-api)'
env:
SSH_HOST: ${{ secrets[matrix.host] }}

Expand Down

0 comments on commit 365b9f4

Please sign in to comment.