Skip to content

Commit

Permalink
Merge pull request #657 from adamkendis/FRONT-workflowUpdates
Browse files Browse the repository at this point in the history
Front - workflow updates
  • Loading branch information
jmensch1 authored May 27, 2020
2 parents b6936c2 + ccd532f commit 91f7e97
Show file tree
Hide file tree
Showing 5 changed files with 16 additions and 1 deletion.
6 changes: 6 additions & 0 deletions .github/workflows/Continuous_Delivery.yml
Original file line number Diff line number Diff line change
Expand Up @@ -24,6 +24,9 @@ jobs:
run: |
echo REACT_APP_MAPBOX_TOKEN=${{ secrets.MAPBOX_TOKEN }} > .env
echo DB_URL=${{ secrets.DB_URL }} >> .env
echo MIXPANEL_ENABLED=${{ secrets.MIXPANEL_ENABLED }} >> .env
echo MIXPANEL_TOKEN_PROD=${{ secrets.MIXPANEL_TOKEN_PROD }} >> .env
echo MIXPANEL_TOKEN_DEV=${{ secrets.MIXPANEL_TOKEN_DEV }} >> .env
echo GITHUB_SHA=${{ github.sha }} >> .env
- name: Build project
run: npm run build
Expand All @@ -35,6 +38,9 @@ jobs:
ACCESS_TOKEN: ${{ secrets.ACCESS_TOKEN }}
REACT_APP_MAPBOX_TOKEN: ${{ secrets.MAPBOX_TOKEN }}
DB_URL: ${{ secrets.DB_URL }}
MIXPANEL_ENABLED: ${{ secrets.MIXPANEL_ENABLED }}
MIXPANEL_TOKEN_PROD: ${{ secrets.MIXPANEL_TOKEN_PROD }}
MIXPANEL_TOKEN_DEV: ${{ secrets.MIXPANEL_TOKEN_DEV }}
BASE_BRANCH: master # The branch the action should deploy from.
BRANCH: gh-pages # The branch the action should deploy to.
FOLDER: dist # The folder the action should deploy.
Expand Down
3 changes: 3 additions & 0 deletions .github/workflows/Continuous_Integration_Frontend.yml
Original file line number Diff line number Diff line change
Expand Up @@ -14,6 +14,9 @@ jobs:
run: |
echo REACT_APP_MAPBOX_TOKEN=${{ secrets.MAPBOX_TOKEN }} > .env
echo DB_URL=${{ secrets.DB_URL }} >> .env
echo MIXPANEL_ENABLED=${{ secrets.MIXPANEL_ENABLED }} >> .env
echo MIXPANEL_TOKEN_PROD=${{ secrets.MIXPANEL_TOKEN_PROD }} >> .env
echo MIXPANEL_TOKEN_DEV=${{ secrets.MIXPANEL_TOKEN_DEV }} >> .env
- name: Build project
run: npm run build
- name: Run Tests
Expand Down
3 changes: 3 additions & 0 deletions Orchestration/docker-compose-example.yml
Original file line number Diff line number Diff line change
Expand Up @@ -31,6 +31,9 @@ services:
environment:
REACT_APP_MAPBOX_TOKEN: REDACTED
DB_URL: http://localhost:5000
MIXPANEL_ENABLED: -1
MIXPANEL_TOKEN_PROD: REDACTED
MIXPANEL_TOKEN_DEV: REDACTED
ports:
- 3000:3000

Expand Down
3 changes: 3 additions & 0 deletions copyEnv.sh
Original file line number Diff line number Diff line change
@@ -1,4 +1,7 @@
echo REACT_APP_MAPBOX_TOKEN=$REACT_APP_MAPBOX_TOKEN > .env
echo DB_URL=$DB_URL >> .env
echo MIXPANEL_ENABLED=$MIXPANEL_ENABLED >> .env
echo MIXPANEL_TOKEN_PROD=$MIXPANEL_TOKEN_PROD >> .env
echo MIXPANEL_TOKEN_DEV=$MIXPANEL_TOKEN_DEV >> .env
webpack
node server.js
2 changes: 1 addition & 1 deletion src/components/main/footer/Footer.jsx
Original file line number Diff line number Diff line change
Expand Up @@ -50,7 +50,7 @@ const mapStateToProps = state => ({
});

Footer.propTypes = {
lastUpdated: propTypes.number,
lastUpdated: propTypes.string,
version: propTypes.string,
backendSha: propTypes.string,
menuIsOpen: propTypes.bool.isRequired,
Expand Down

0 comments on commit 91f7e97

Please sign in to comment.