Skip to content

Commit

Permalink
Reverted to Github SHA (#155)
Browse files Browse the repository at this point in the history
Corrected indentation
  • Loading branch information
benrometsch authored Jun 25, 2021
1 parent 637591f commit 18e9c96
Showing 1 changed file with 44 additions and 44 deletions.
88 changes: 44 additions & 44 deletions .github/workflows/api-deploy-production.yml
Original file line number Diff line number Diff line change
@@ -1,54 +1,54 @@
name: API Deploy to Production

on:
push:
tags:
- '*'
paths:
- 'api/**'
- '.github/**'
push:
tags:
- '*'
paths:
- 'api/**'
- '.github/**'

jobs:
deploy-production:
runs-on: ubuntu-latest
name: API Deploy to Production
container: flagsmith/eb-cli:latest
environment: production
deploy-production:
runs-on: ubuntu-latest
name: API Deploy to Production
container: flagsmith/eb-cli:latest
environment: production

steps:
- name: Cloning repo
uses: actions/checkout@v2
with:
fetch-depth: 0
steps:
- name: Cloning repo
uses: actions/checkout@v2
with:
fetch-depth: 0

- name: Push to ElasticBeanstalk
working-directory: api
env:
AWS_ACCESS_KEY_ID: ${{ secrets.AWS_ACCESS_KEY_ID }}
AWS_SECRET_ACCESS_KEY: ${{ secrets.AWS_SECRET_ACCESS_KEY }}
run: eb deploy production-api -l "${GITHUB_REF}"
- name: Push to ElasticBeanstalk
working-directory: api
env:
AWS_ACCESS_KEY_ID: ${{ secrets.AWS_ACCESS_KEY_ID }}
AWS_SECRET_ACCESS_KEY: ${{ secrets.AWS_SECRET_ACCESS_KEY }}
run: eb deploy production-api -l "${GITHUB_SHA}"

run-tests:
runs-on: ubuntu-latest
name: Run E2E Tests
container: kylessg/bullet-train-nightwatch:1.1
environment: production
needs: deploy-production
run-tests:
runs-on: ubuntu-latest
name: Run E2E Tests
container: kylessg/bullet-train-nightwatch:1.1
environment: production
needs: deploy-production

steps:
- name: Cloning repo
uses: actions/checkout@v2
with:
fetch-depth: 0
steps:
- name: Cloning repo
uses: actions/checkout@v2
with:
fetch-depth: 0

- name: Test with Chromedriver
working-directory: frontend
env:
E2E_TEST_TOKEN_PROD: ${{ secrets.E2E_TEST_TOKEN }}
run: |
google-chrome --version
node -v
npm i
export ENV=prod;
npm run env
npm run test
- name: Test with Chromedriver
working-directory: frontend
env:
E2E_TEST_TOKEN_PROD: ${{ secrets.E2E_TEST_TOKEN }}
run: |
google-chrome --version
node -v
npm i
export ENV=prod;
npm run env
npm run test

0 comments on commit 18e9c96

Please sign in to comment.