Fix public key path to read file contents dynamically by generated JS… #8
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
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: | | |
cd ./src/services/auth && docker build -t ahmadsaeedgoda/ld_rr:render-auth-service -f Dockerfile.staging.uat . | |
docker push ahmadsaeedgoda/ld_rr:render-auth-service | |
- name: Generate Public/Private Keys for JWT auth functionality | |
run: | | |
openssl genrsa -out ./certs/private.pem | |
openssl rsa -in ./certs/private.pem -pubout -out ./certs/public.pem | |
- name: Trigger Render Deploy Hook | |
run: | | |
curl -X POST ${{ secrets.RENDER_DEPLOY_HOOK_URL }} | |
# Test deployment trigger |