Skip to content

Updated README file

Updated README file #4

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
- name: Generate deployment package
run: zip -r deploy.zip . -x '*.git*'
- name: Deploy to EB
uses: einaregilsson/beanstalk-deploy@v21
with:
aws_access_key: ${{ secrets.AWS_ACCESS_KEY }}
aws_secret_key: ${{ secrets.AWS_SECRET_KEY }}
application_name: frontend
environment_name: frontend-env
existing_bucket_name: elasticbeanstalk-eu-north-1-749180651079
region: eu-north-1
version_label: ${{ github.sha }}
deployment_package: deploy.zip