Skip to content

update

update #15

Workflow file for this run

name: Build, Push, and Deploy
on:
push:
branches:
- main
jobs:
build-push-deploy:
runs-on: ubuntu-latest
steps:
- name: Checkout code
uses: actions/checkout@v4
- name: Set up Docker Buildx
uses: docker/setup-buildx-action@v3
- name: Login to DockerHub
uses: docker/login-action@v3
with:
username: ${{ secrets.DOCKERHUB_USERNAME }}
password: ${{ secrets.DOCKERHUB_TOKEN }}
- name: Build and push Docker image
uses: docker/build-push-action@v5
with:
context: .
push: true
tags: ${{ secrets.DOCKERHUB_USERNAME }}/shrink-it:latest
- name: Trigger Render Deploy
run: curl -X POST ${{ secrets.RENDER_DEPLOY_HOOK_URL }}