Skip to content

docker image updated #112

docker image updated

docker image updated #112

name: S3 Deployment
on:
push:
branches:
- main
jobs:
deploy:
runs-on: ubuntu-latest
defaults:
run:
working-directory: ./frontend/farm_volunteers
steps:
- name: Checkout Repository
uses: actions/[email protected]
- name: Configure AWS Credentials
uses: aws-actions/[email protected]
with:
aws-access-key-id: "${{ secrets.AWS_ACCESS_KEY_ID }}"
aws-secret-access-key: "${{ secrets.AWS_SECRET_ACCESS_KEY }}"
aws-region: eu-west-2
- name: Build application
run: |
npm install
npm run build
- name: Sync build folder to S3
run: |
aws s3 sync build/ s3://farmcity