Skip to content

✅ Test: Add New Story #36

✅ Test: Add New Story

✅ Test: Add New Story #36

Workflow file for this run

name: Docker Build
on:
push:
branches: [ main ]
pull_request:
branches: [ main ]
jobs:
test:
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@v1
- name: Unit Tests
run: |
echo "Running Unit Tests"
yarn install
yarn run test:ci
echo "Unit Tests Completed"
build:
needs: test
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@v1
- name: Build & Push Image
run: |
echo "${{ secrets.DOCKERHUB_PASSWORD }}" | docker login -u "${{secrets.DOCKERHUB_USERNAME}}" --password-stdin
docker image build . -t amirzenoozi/lps-react-app:latest
docker push amirzenoozi/lps-react-app:latest