Skip to content

Commit

Permalink
Fix ansible playbook
Browse files Browse the repository at this point in the history
  • Loading branch information
AndreyKlychnikov committed Dec 12, 2023
1 parent df5d609 commit 00497cb
Show file tree
Hide file tree
Showing 2 changed files with 8 additions and 16 deletions.
12 changes: 2 additions & 10 deletions .github/workflows/deploy_backend.yml
Original file line number Diff line number Diff line change
Expand Up @@ -55,17 +55,9 @@ jobs:
- name: Check out repository
uses: actions/checkout@v3

- name: Get Known Hosts
id: get_known_hosts
run: |
KNOWN_HOSTS=$(ssh-keyscan -H ${{ secrets.SSH_HOST }})
echo ::set-output name=hosts::${KNOWN_HOSTS}
- name: Install SSH Key
uses: shimataro/ssh-key-action@v2
- uses: webfactory/ssh-agent@v0.8.0
with:
key: ${{ secrets.SSH_PRIVATE_KEY }}
known_hosts: ${{ steps.get_known_hosts.outputs.hosts }}
ssh-private-key: ${{ secrets.SSH_PRIVATE_KEY }}

- name: Run playbook
uses: dawidd6/action-ansible-playbook@v2
Expand Down
12 changes: 6 additions & 6 deletions .pre-commit-config.yaml
Original file line number Diff line number Diff line change
@@ -1,25 +1,25 @@
repos:
- repo: https://github.com/pre-commit/pre-commit-hooks
rev: v2.3.0
rev: v4.5.0
hooks:
- id: check-yaml
- id: check-json
- id: end-of-file-fixer
- id: trailing-whitespace

- repo: https://github.com/psf/black
rev: 22.3.0
rev: 23.11.0
hooks:
- id: black
files: ^.+\.py$

- repo: https://github.com/pycqa/isort
rev: 5.10.1
rev: 5.13.0
hooks:
- id: isort
args: ["--profile", "black", "--filter-files"]

- repo: https://gitlab.com/pycqa/flake8
rev: 5.0.3
- repo: https://github.com/PyCQA/flake8
rev: 6.1.0
hooks:
- id: flake8
- id: flake8

0 comments on commit 00497cb

Please sign in to comment.