Web App Render Deploy Hook #4
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
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 }}" |