Skip to content

Commit

Permalink
Remove testing
Browse files Browse the repository at this point in the history
  • Loading branch information
enolfc committed Dec 2, 2021
1 parent ec9f6e9 commit b8803da
Show file tree
Hide file tree
Showing 2 changed files with 7 additions and 7 deletions.
12 changes: 6 additions & 6 deletions .github/workflows/deploy.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -3,8 +3,8 @@ name: 'Deploy'

on:
push:
# branches:
# - main
branches:
- main
pull_request:

jobs:
Expand Down Expand Up @@ -77,23 +77,23 @@ jobs:
if: steps.plan.outcome == 'failure'
run: exit 1
- name: Terraform Apply
# if: github.ref == 'refs/heads/main' && github.event_name == 'push'
if: github.ref == 'refs/heads/main' && github.event_name == 'push'
run: |
terraform apply -auto-approve -var-file=deploy.tfvars
- name: Get IP
id: public_ip
# if: github.ref == 'refs/heads/main' && github.event_name == 'push'
if: github.ref == 'refs/heads/main' && github.event_name == 'push'
run: |
terraform output -raw public_ip
- name: Update IP in DNS
# if: github.ref == 'refs/heads/main' && github.event_name == 'push'
if: github.ref == 'refs/heads/main' && github.event_name == 'push'
env:
NSUPDATE_SECRET: ${{ secrets.NSUPDATE_SECRET }}
run: |
curl -u "horizon.vm.fedcloud.eu:$NSUPDATE_SECRET" \
"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'
if: github.ref == 'refs/heads/main' && github.event_name == 'push'
env:
SSH_KEY: ${{ secrets.SSH_KEY }}
run: |
Expand Down
2 changes: 1 addition & 1 deletion configure.sh
Original file line number Diff line number Diff line change
Expand Up @@ -21,4 +21,4 @@ chmod 400 key
# and now config
ansible-galaxy install -r galaxy-requirements.yaml

ansible-playbook -vvv -i inventory.yaml playbook.yaml
ansible-playbook -i inventory.yaml playbook.yaml

0 comments on commit b8803da

Please sign in to comment.