Update .gitea/workflows/update.yml
This commit is contained in:
@@ -27,24 +27,20 @@ jobs:
|
||||
image: dtrotskiy/ansible
|
||||
|
||||
steps:
|
||||
- name: debug
|
||||
- name: Local connect
|
||||
run: |
|
||||
echo "10.10.1.10 gitea.bwonsamdi.ru" >> /etc/hosts
|
||||
|
||||
- name: Test
|
||||
run: |
|
||||
curl -v https://gitea.bwonsamdi.ru/HomeLab/gonfig.git
|
||||
|
||||
- name: Checkout code
|
||||
run: |
|
||||
git clone https://gitea.bwonsamdi.ru/HomeLab/gonfig.git dump
|
||||
|
||||
- name: Setup SSH key
|
||||
run: |
|
||||
mkdir -p ~/.ssh
|
||||
echo "${{ secrets.SSH_KEY }}" > ~/.ssh/id_ed25519
|
||||
chmod 600 ~/.ssh/id_ed25519
|
||||
|
||||
- name: Checkout code
|
||||
run: |
|
||||
git clone https://gitea.bwonsamdi.ru/HomeLab/gonfig.git dump
|
||||
|
||||
- name: Run Ansible playbook
|
||||
run: |
|
||||
ansible-playbook ./dump/playbook.yml -i ./dump/hosts.yml -e "go_version=${{ inputs.version }} force=${{ inputs.force }} TARGET=prodesk"
|
||||
Reference in New Issue
Block a user