Skip to content

fixes releases check #10

fixes releases check

fixes releases check #10

Workflow file for this run

name: Deploy PR
on:
pull_request:
branches: [ main ]
jobs:
EC2-Deploy:
# 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: deploy
name: Deploy
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
# Provide a secret called `DOT_ENV` to append environment variables to the .env file
dot_env: ${{ secrets.DOT_ENV }}
domain_name: bitovi-jira.com
app_port: 3000
- 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