-
Notifications
You must be signed in to change notification settings - Fork 0
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Automate deployment of Auth App on Render via Github Actions
- Loading branch information
1 parent
4ccf3c1
commit 83179c2
Showing
2 changed files
with
30 additions
and
18 deletions.
There are no files selected for viewing
This file was deleted.
Oops, something went wrong.
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
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 }} | ||