Skip to content

Used Docker PAT to login #2

Used Docker PAT to login

Used Docker PAT to login #2

Workflow file for this run

name: Deploy Frontend
on:
push:
branches:
- main
jobs:
build:
runs-on: ubuntu-latest
steps:
- name: Checkout code
uses: actions/checkout@v4
- name: Log in to Docker Hub
uses: docker/login-action@v3
with:
username: ${{ secrets.DOCKER_USERNAME }}
password: ${{ secrets.DOCKER_TOKEN }}
- name: Build Docker image
run: docker build -t mmaksi/react-nginx -f Dockerfile.dev .
- name: Run tests in container
run: docker run -e CI=true mmaksi/react-nginx npm run test