Skip to content

adding google analytics #20

adding google analytics

adding google analytics #20

Workflow file for this run

name: Destroy
on:
workflow_dispatch:
inputs:
aws_resource_identifier:
description: Resource Identifier for deployed resources
pull_request:
types: [ closed ]
concurrency:
group: ${{ github.workflow }}-${{ github.event.pull_request.number || github.ref }}
cancel-in-progress: true
jobs:
destroy:
# if the branch name of the PR does not contain 'skip-deploy'
if: "!contains(github.head_ref, 'skip-deploy')"
runs-on: ubuntu-latest
environment:
name: ${{ github.ref_name }}
url: ${{ steps.deploy.outputs.vm_url }}
steps:
- id: destroy
name: Destroy
uses: bitovi/[email protected]
with:
aws_access_key_id: ${{ secrets.AWS_ACCESS_KEY_ID_JIRA_INTEGRATIONS}}
aws_secret_access_key: ${{ secrets.AWS_SECRET_ACCESS_KEY_JIRA_INTEGRATIONS}}
aws_default_region: us-east-1
stack_destroy: "true"
aws_resource_identifier: ${{ github.event.inputs.aws_resource_identifier }}
# Provide a secret called `DOT_ENV` to append environment variables to the .env file
dot_env: ${{ secrets.DOT_ENV }}
- if: ${{ steps.deploy.outputs.vm_url != '' }}
name: Print result created
run: |
echo "## VM Created! :rocket:" >> $GITHUB_STEP_SUMMARY
echo " ${{ steps.deploy.outputs.vm_url }}" >> $GITHUB_STEP_SUMMARY
- if: ${{ steps.deploy.outputs.vm_url == '' }}
name: Print result destroyed
run: |
echo "## VM Destroyed! :boom:" >> $GITHUB_STEP_SUMMARY
echo "Buckets and whole infrastructure should be gone now!" >> $GITHUB_STEP_SUMMARY