Skip to content

update redis connection #30

update redis connection

update redis connection #30

Workflow file for this run

name: PROD DEPLOY
on:
push:
tags: ["v*"]
workflow_dispatch:
jobs:
deploy-prod:
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@v2
- name: Set release version
run: echo "RELEASE_VERSION=$GITHUB_REF" >> $GITHUB_ENV
- name: Login to Docker Hub
uses: docker/login-action@v2
with:
username: ${{ secrets.DOCKER_USERNAME }}
password: ${{ secrets.DOCKER_PASSWORD }}
- name: Set up Docker Buildx
uses: docker/setup-buildx-action@v2
- name: Build and push Docker image
uses: docker/build-push-action@v4
with:
push: true
tags: codelittinc/notifications:latest
context: .
file: ./Dockerfile
- name: Deploy to Heroku
uses: AkhileshNS/[email protected]
with:
heroku_api_key: ${{ secrets.HEROKU_API_KEY }}
heroku_email: ${{ secrets.HEROKU_EMAIL }}
heroku_app_name: ${{ secrets.HEROKU_APP_NAME_PROD }}
branch: ${{ env.RELEASE_VERSION }}
dontuseforce: false
- name: Notify Roadrunner about deployment status
uses: codelittinc/action-roadrunner-notify-deploy@master
if: always()
with:
environment: prod
domain: api.notifications.codelitt.dev