Skip to content

Commit

Permalink
Merge branch 'main' of github.com:HE-Arc/ARConnect-Manager
Browse files Browse the repository at this point in the history
  • Loading branch information
danielMoreirad committed Mar 21, 2024
2 parents 75a4a82 + f869a1a commit 429c825
Showing 1 changed file with 36 additions and 0 deletions.
36 changes: 36 additions & 0 deletions .github/workflows/azure-webapps-python.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,36 @@
name: Deploy to production

on:
push:
branches:
- main

jobs:
test:
runs-on: ubuntu-latest

steps:
- name: "Checkout repository"
uses: actions/checkout@v4
- name: Set up Ruby
uses: ruby/[email protected]
with:
bundler-cache: true
ruby-version: 3.0.3
- name: Install SSH key
uses: webfactory/[email protected]
with:
ssh-private-key: ${{ secrets.SSH_KEY }}
- name: Add known host
run: |
ssh-keyscan -p ${{ secrets.DEPLOY_HOST_SSH_PORT }} ${{ secrets.DEPLOY_HOST }} >> ~/.ssh/known_hosts
- name: Test SSH connection
run: |
ssh -vvv ${{ secrets.DEPLOY_USERNAME }}@${{ secrets.DEPLOY_HOST }} -p${{ secrets.DEPLOY_HOST_SSH_PORT }}
- name: Deploy
env:
DEPLOY_HOST: ${{ secrets.DEPLOY_HOST }}
DEPLOY_USERNAME: ${{ secrets.DEPLOY_USERNAME }}
DEPLOY_HOST_SSH_PORT: ${{ secrets.DEPLOY_HOST_SSH_PORT }}
run: |
bundle exec cap production deploy

0 comments on commit 429c825

Please sign in to comment.