diff --git a/.gitea/workflows/update.yml b/.gitea/workflows/update.yml index cdfdb11..4a2e0d1 100644 --- a/.gitea/workflows/update.yml +++ b/.gitea/workflows/update.yml @@ -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" \ No newline at end of file