Skip to content

Commit 451b28a

Browse files
committed
update Docker image tags and add caching for build process
1 parent 6044aa6 commit 451b28a

File tree

1 file changed

+4
-4
lines changed

1 file changed

+4
-4
lines changed

.github/workflows/deploy-backend.yml

Lines changed: 4 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -68,7 +68,9 @@ jobs:
6868
context: "{{defaultContext}}:backend"
6969
file: Dockerfile
7070
push: true
71-
tags: ${{ secrets.DOCKER_HUB_USERNAME }}/taskaza:${{ github.sha }}
71+
tags: ${{ secrets.DOCKER_HUB_USERNAME }}/taskaza-api:${{ github.sha }}
72+
cache-from: type=registry,ref=${{ secrets.DOCKER_HUB_USERNAME }}/taskaza-api:buildcache
73+
cache-to: type=registry,ref=${{ secrets.DOCKER_HUB_USERNAME }}/taskaza-api:buildcache,mode=max
7274

7375

7476
deploy-to-render:
@@ -77,9 +79,6 @@ jobs:
7779
needs: test
7880
environment:
7981
name: render
80-
defaults:
81-
run:
82-
working-directory: backend
8382

8483
steps:
8584
- name: Deploy to Render
@@ -88,5 +87,6 @@ jobs:
8887
service_id: ${{ secrets.RENDER_SERVICE_ID }}
8988
api_key: ${{ secrets.RENDER_API_KEY }}
9089
github_deployment: true
90+
wait_deploy: true
9191
deployment_environment: 'render'
9292
github_token: ${{ secrets.GITHUB_TOKEN }}

0 commit comments

Comments
 (0)