Skip to content

Commit

Permalink
Fix keys generation before building docker image for deployment workflow
Browse files Browse the repository at this point in the history
  • Loading branch information
ahmadSaeedGoda committed Mar 24, 2024
1 parent c844df9 commit b54ce09
Showing 1 changed file with 5 additions and 5 deletions.
10 changes: 5 additions & 5 deletions .github/workflows/render-build-deploy.yml
Original file line number Diff line number Diff line change
Expand Up @@ -19,16 +19,16 @@ jobs:
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: 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: Trigger Render Deploy Hook
run: |
curl ${{ secrets.RENDER_DEPLOY_HOOK_URL }}
Expand Down

0 comments on commit b54ce09

Please sign in to comment.