From b8803daafa4512f5af9bc3df3eb7d940cebafb7d Mon Sep 17 00:00:00 2001 From: Enol Fernandez Date: Thu, 2 Dec 2021 14:51:28 +0000 Subject: [PATCH] Remove testing --- .github/workflows/deploy.yaml | 12 ++++++------ configure.sh | 2 +- 2 files changed, 7 insertions(+), 7 deletions(-) diff --git a/.github/workflows/deploy.yaml b/.github/workflows/deploy.yaml index 38a2084..b26b58f 100644 --- a/.github/workflows/deploy.yaml +++ b/.github/workflows/deploy.yaml @@ -3,8 +3,8 @@ name: 'Deploy' on: push: -# branches: -# - main + branches: + - main pull_request: jobs: @@ -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: | diff --git a/configure.sh b/configure.sh index 955fa93..27d081d 100755 --- a/configure.sh +++ b/configure.sh @@ -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