Skip to content

fixed login/ page reload error #30

fixed login/ page reload error

fixed login/ page reload error #30

Workflow file for this run

name: Build and Deploy Client
defaults:
run:
working-directory: src/Web/client
on:
push:
branches: [main]
paths: [src/Web/client/**]
pull_request:
branches: [main]
paths: [src/Web/client/**]
workflow_dispatch:
jobs:
build-client:
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@v4
- uses: actions/setup-node@v4
- name: Install dependencies
run: npm install
- name: Build project
run: npm run build
- name: Run tests
run: echo "no tests to run"
- name: Build & push docker image
uses: mr-smithers-excellent/docker-build-push@v6
with:
image: ${{ vars.DOCKER_HUB_REPO }}/${{ vars.CLIENT_IMAGE_NAME }}
tags: ${{ github.sha }}
registry: docker.io
username: ${{ secrets.DOCKER_USERNAME }}
password: ${{ secrets.DOCKER_PASSWORD }}
directory: src/Web/client
dockerfile: src/Web/client/Dockerfile
deploy-client:
needs: build-client
runs-on: ubuntu-latest
steps:
- uses: azure/webapps-deploy@v2
with:
app-name: mygamestat-frontend
slot-name: production
publish-profile: ${{ secrets.AZURE_PUBLISH_PROFILE_FRONTEND }}
images: 'index.docker.io/${{ vars.DOCKER_HUB_REPO }}/${{ vars.CLIENT_IMAGE_NAME }}:${{ github.sha }}'