Skip to content

Web App Render Deploy Hook #4

Web App Render Deploy Hook

Web App Render Deploy Hook #4

name: Web App Render Deploy Hook
on:
workflow_dispatch:
#push:
# branches: "main"
# paths:
# - "src/**"
jobs:
build-and-deploy:
runs-on: ubuntu-latest
steps:
- name: Checkout repository
uses: actions/checkout@v4
- name: Login to Docker Hub
uses: docker/login-action@v3
with:
username: ${{ secrets.DOCKER_USERNAME }}
password: ${{ secrets.DOCKER_PASSWORD }}
- name: Build Docker image
run: |
cd src/client
docker build -t blazc007/traffic-flow-prediction-web-app:latest .
docker push blazc007/traffic-flow-prediction-web-app:latest
- name: Call API Deploy Hook
run: |
curl -X POST "${{ secrets.WEB_APP_RENDER_DEPLOY_HOOK_URL }}"