Skip to content

Trigger deploy to debug #13

Trigger deploy to debug

Trigger deploy to debug #13

name: CI
on:
push:
branches:
- feature/render-CD-demo
jobs:
build:
runs-on: ubuntu-latest
steps:
- name: Checkout code
uses: actions/checkout@v2
- name: Login to Docker Hub
uses: docker/login-action@v2
with:
username: ${{ secrets.DOCKER_USERNAME }}
password: ${{ secrets.DOCKER_PASSWORD }}
- name: Build and push Docker image
run: |
docker build -t ahmadsaeedgoda/ld_rr:render-auth-service -f ./src/services/auth/Dockerfile.staging.uat ./src/services/auth
docker push ahmadsaeedgoda/ld_rr:render-auth-service
- name: Generate Public/Private Keys for JWT auth functionality
run: |
openssl genrsa -out ./src/services/auth/certs/private.pem
openssl rsa -in ./src/services/auth/certs/private.pem -pubout -out ./src/services/auth/certs/public.pem
- name: Trigger Render Deploy Hook
run: |
curl ${{ secrets.RENDER_DEPLOY_HOOK_URL }}
# Test deployment trigger