Skip to content

first commit

first commit #1

Workflow file for this run

name: Deploy Frontend
on:
push:
branches:
- main
jobs:
build:
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@v3
- run: docker login -u ${{ secrets.DOCKER_USERNAME }} -p ${{ secrets.DOCKER_PASSWORD }}
- run: docker build -t ksspam/react-test -f Dockerfile.dev .
- run: docker run -e CI=true ksspam/react-test npm test
- name: Generate deployment package
run: zip -r deploy.zip . -x '*.git*'
- name: Deploy to EB
uses: einaregilsson/beanstalk-deploy@v18
with:
application_name: docker
environment_name: Docker-env
existing_bucket_name: elasticbeanstalk-ap-south-1-443370700977
region: ap-south-1
version_label: ${{ github.sha }}
deployment_package: deploy.zip