Skip to content

Commit

Permalink
Automate deployment of Auth App on Render via Github Actions
Browse files Browse the repository at this point in the history
  • Loading branch information
ahmadSaeedGoda committed Mar 22, 2024
1 parent 4ccf3c1 commit 83179c2
Show file tree
Hide file tree
Showing 2 changed files with 30 additions and 18 deletions.
18 changes: 0 additions & 18 deletions .github/workflows/docker-image.yml

This file was deleted.

30 changes: 30 additions & 0 deletions .github/workflows/render-build-deploy.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,30 @@
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 Dockerfile.staging.uat .
docker push ahmadsaeedgoda/ld_rr:render-auth-service
- name: Trigger Render Deploy Hook
run: |
curl -X POST ${{ secrets.RENDER_DEPLOY_HOOK_URL }}

0 comments on commit 83179c2

Please sign in to comment.