Skip to content

Commit

Permalink
Try again to move to github action
Browse files Browse the repository at this point in the history
  • Loading branch information
enolfc committed Dec 3, 2021
1 parent 9d2a8ca commit a61e603
Show file tree
Hide file tree
Showing 2 changed files with 13 additions and 31 deletions.
18 changes: 13 additions & 5 deletions .github/workflows/deploy.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -100,8 +100,16 @@ jobs:
"https://nsupdate.fedcloud.eu/nic/update?myip=${{ steps.public_ip.outputs.stdout }}"
- name: Configure with ansible
if: github.ref == 'refs/heads/main' && github.event_name == 'push'
env:
SSH_KEY: ${{ secrets.SSH_KEY }}
run: |
cd deployment
./configure.sh "$SSH_KEY" "${{ steps.public_ip.outputs.stdout }}" "{{ github.sha }}"
uses: dawidd6/action-ansible-playbook@v2
with:
playbook: playbook.yml
directory: ./deployment
key: ${{secrets.SSH_KEY}}
inventory: |
[all]
${{ steps.public_ip.outputs.stdout }}
requirements: galaxy-requirements.yaml
options: |
--extra-vars git_ref="{{ github.sha }}"
--ssh-common-args="-o StrictHostKeyChecking=no -o UserKnownHostsFile=/dev/null"
-u egi
26 changes: 0 additions & 26 deletions deployment/configure.sh

This file was deleted.

0 comments on commit a61e603

Please sign in to comment.