From f6c9bf6152d548ca16753e2414dc4953e377f0da Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?S=C3=A1muel=20Fekete?= Date: Sat, 4 May 2024 15:45:04 +0200 Subject: [PATCH] retry --- .github/workflows/deploy.yml | 53 ++++++++++++++++++------------------ 1 file changed, 27 insertions(+), 26 deletions(-) diff --git a/.github/workflows/deploy.yml b/.github/workflows/deploy.yml index 5af385e..be5559e 100644 --- a/.github/workflows/deploy.yml +++ b/.github/workflows/deploy.yml @@ -4,41 +4,42 @@ on: push: branches: - master + - deploy-attempts jobs: - # terraform: - # name: Setup infrastructure in Azure with Terraform - # defaults: - # run: - # working-directory: 'infra' - # runs-on: ubuntu-latest - # steps: - # - uses: actions/checkout@v4 - # - uses: hashicorp/setup-terraform@v3 - # with: - # cli_config_credentials_token: ${{ secrets.TF_API_TOKEN }} + terraform: + name: Setup infrastructure in Azure with Terraform + defaults: + run: + working-directory: 'infra' + runs-on: ubuntu-latest + steps: + - uses: actions/checkout@v4 + - uses: hashicorp/setup-terraform@v3 + with: + cli_config_credentials_token: ${{ secrets.TF_API_TOKEN }} - # - name: Terraform fmt - # id: fmt - # run: terraform fmt -check - # continue-on-error: true + - name: Terraform fmt + id: fmt + run: terraform fmt -check + continue-on-error: true - # - name: Terraform Init - # id: init - # run: terraform init + - name: Terraform Init + id: init + run: terraform init - # - name: Terraform Validate - # id: validate - # run: terraform validate -no-color + - name: Terraform Validate + id: validate + run: terraform validate -no-color - # - name: Terraform Apply - # id: apply - # run: terraform apply -no-color -auto-approve - # continue-on-error: true + - name: Terraform Apply + id: apply + run: terraform apply -no-color -auto-approve + continue-on-error: true deploy_fa: name: Deploy backend code to Azure Function App - # needs: terraform + needs: terraform runs-on: ubuntu-latest steps: - name: 'Checkout GitHub Action'