Skip to content

Shubham | Lightsail Instance Deployment #170

Shubham | Lightsail Instance Deployment

Shubham | Lightsail Instance Deployment #170

Workflow file for this run

name: PR Deploy
on:
pull_request:
types: [labeled, synchronize]
jobs:
deploy_to_development:
if: contains(github.event.pull_request.labels.*.name, 'pr/deploy')
runs-on: self-hosted
environment: development
env:
PR_NUMBER: ${{ github.event.number }}
AWS_DEFAULT_REGION: eu-central-1
AWS_ACCESS_KEY_ID: ${{ secrets.AWS_ACCESS_KEY_ID }}
AWS_SECRET_ACCESS_KEY: ${{ secrets.AWS_SECRET_ACCESS_KEY }}
SMTP_HOST: ${{ secrets.SMTP_HOST }}
SMTP_USER: ${{ secrets.SMTP_USER }}
SMTP_PASSWORD: ${{ secrets.SMTP_PASSWORD }}
steps:
- uses: actions/checkout@v2
- run: |
bash .github/tvarit/deploy_to_development.sh
- uses: marocchino/sticky-pull-request-comment@v2
with:
number: ${{ github.event.number }}
message: 'Deployment complete. Please visit https://dev-grafana-${{ github.event.number }}.gh13sk1ojoobm.eu-central-1.cs.amazonlightsail.com/ to view the deployment!'