Skip to content

Commit

Permalink
start to set up CI
Browse files Browse the repository at this point in the history
  • Loading branch information
fgregg committed Oct 31, 2023
1 parent b3123ba commit 762986c
Show file tree
Hide file tree
Showing 2 changed files with 42 additions and 6 deletions.
26 changes: 20 additions & 6 deletions .github/workflows/main.yml
Original file line number Diff line number Diff line change
Expand Up @@ -5,17 +5,31 @@ on:
branches:
- master
- deploy
- ec2_deploy
pull_request:
branches:
- master

jobs:
test:
name: Run tests
name: Deploy to AWS
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@v1
- name: Build containers and run tests
run: docker-compose -f docker-compose.yml -f tests/docker-compose.yml run --rm app
- name: Run flake8
run: docker-compose run --rm app flake8 asset_dashboard
- uses: aws-actions/configure-aws-credentials@v1
with:
aws-access-key-id: ${{ secrets.AWS_ACCESS_KEY_ID }}
aws-secret-access-key: ${{ secrets.AWS_SECRET_ACCESS_KEY }}
aws-region: us-east-1
- uses: actions/checkout@v2
- id: deploy
uses: webfactory/[email protected]
with:
application: asset-dashboard
# name: Run tests
# runs-on: ubuntu-latest
# steps:
# - uses: actions/checkout@v1
# - name: Build containers and run tests
# run: docker-compose -f docker-compose.yml -f tests/docker-compose.yml run --rm app
# - name: Run flake8
# run: docker-compose run --rm app flake8 asset_dashboard
22 changes: 22 additions & 0 deletions appspec.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,22 @@
version: 0.0
os: linux
files:
- source: /
destination: /home/datamade/asset-dashboard
hooks:
BeforeInstall:
- location: scripts/before_install.sh
runas: root
ApplicationStart:
- location: scripts/app_start.sh
runas: root
AfterInstall:
- location: scripts/after_install.sh
runas: root

branch_config:
ec2_deploy:
deploymentGroupName: staging

deploy:
deploymentGroupName: production

0 comments on commit 762986c

Please sign in to comment.