Skip to content

ready to deploy

ready to deploy #2

Workflow file for this run

name: Test Docker Client
on:
push:
branches:
- 'main'
jobs:
build:
runs-on: ubuntu-latest
steps:
- name: Checkout
uses: actions/checkout@v3
- name: Login to Docker Hub
uses: docker/login-action@v2
with:
username: ${{ secrets.DOCKERHUB_USERNAME }}
password: ${{ secrets.DOCKERHUB_TOKEN }}
- name: Set up Docker Buildx
uses: docker/setup-buildx-action@v2
-
name: Build a test image
run: docker build -t ${{ secrets.DOCKERHUB_USERNAME }}/docker-react -f Dockerfile.dev .
- name: Test
run: docker run -e CI=true ${{ secrets.DOCKERHUB_USERNAME }}/docker-react:latest npm run test