-
Notifications
You must be signed in to change notification settings - Fork 0
31 lines (28 loc) · 1017 Bytes
/
deploy.yaml
File metadata and controls
31 lines (28 loc) · 1017 Bytes
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
name: Test Frontend
on:
workflow_dispatch:
push:
branches: [ master ]
pull_request:
branches: [ master ]
jobs:
build:
runs-on: self-hosted
steps:
- uses: actions/checkout@v3
- run: docker login -u ${{ secrets.DOCKER_USERNAME }} -p ${{ secrets.DOCKER_PASSWORD }}
- run: docker build -t cygnetops/react-test -f Dockerfile.dev .
- run: docker run -e CI=true cygnetops/react-test npm 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-central-1-851725185041
# region: eu-central-1
# version_label: ${{ github.sha }}
# deployment_package: deploy.zip