Skip to content

fixed a file: deploy.yml #2

fixed a file: deploy.yml

fixed a file: deploy.yml #2

Workflow file for this run

name: Deploy RecBOJ Backend
on:
push:
branches:
- test-gh-action
jobs:
build:
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@v3
- name: Docker Login
run: echo "${{ secrets.DOCKER_PASSWORD }}" | docker login -u "${{ secrets.DOCKER_USERNAME }}" --password-stdin
- name: Build Docker Image
run: docker build -t wjddn/recboj-test -f Dockerfile.dev .
working-directory: ./ChromeExtension/server
- name: Run Tests
run: docker run -e CI=true wjddn/recboj-test python app.py
working-directory: ./ChromeExtension/server
- name: Generate deployment package
run: bash deploy.sh
working-directory: ./ChromeExtension/server
- name: Deploy to EB
uses: einaregilsson/beanstalk-deploy@v18
with:
aws_access_key: ${{ secrets.AWS_ACCESS_KEY }}
aws_secret_key: ${{ secrets.AWS_SECRET_KEY }}
application_name: docker-gitaction
environment_name: docker-gitaction
existing_bucket_name: elasticbeanstalk-eu-north-1-900478210705
region: eu-north-1
version_label: ${{ github.sha }}
deployment_package: deploy.zip