Skip to content

Commit

Permalink
Merge pull request #860 from hackforla/feat-adding-gitsha
Browse files Browse the repository at this point in the history
Feat adding gitsha
  • Loading branch information
mattyweb authored Dec 4, 2020
2 parents 87fbf95 + 8f158d1 commit f3055dc
Show file tree
Hide file tree
Showing 3 changed files with 5 additions and 2 deletions.
1 change: 1 addition & 0 deletions .github/workflows/create_prefect_dev.yml
Original file line number Diff line number Diff line change
Expand Up @@ -4,6 +4,7 @@ on:
branches:
- dev
- master
- 'v*' # Push events to matching v*, i.e. v1.0, v20.15.10
paths:
- 'server/prefect/**'
jobs:
Expand Down
4 changes: 3 additions & 1 deletion .github/workflows/create_release_dev.yml
Original file line number Diff line number Diff line change
Expand Up @@ -4,6 +4,7 @@ on:
branches:
- dev
- master
- 'v*' # Push events to matching v*, i.e. v1.0, v20.15.10
paths:
- 'server/api/**'
jobs:
Expand All @@ -15,7 +16,8 @@ jobs:
uses: actions/checkout@v2
- name: Setup environment
run: |
echo GITHUB_SHA=${{ github.sha }} >> server/api/.env
echo GITHUB_CODE_VERSION=${{ env.BRANCH_NAME }} >> server/api/.env
echo GITHUB_SHA=${{ github.sha }} >> server/api/.env
- name: Build and Push Image to Docker Hub
uses: docker/build-push-action@v1
with:
Expand Down
2 changes: 1 addition & 1 deletion server/api/code/lacity_data_api/config.py
Original file line number Diff line number Diff line change
Expand Up @@ -15,7 +15,7 @@
# checking for testing or debug
DEBUG = config("DEBUG", cast=bool, default=False)
TESTING = config("TESTING", cast=bool, default=False)
STAGE = config("STAGE", default="Development")
STAGE = config("STAGE", default="Local")

# getting database configuration
DB_DRIVER = config("DB_DRIVER", default="postgresql")
Expand Down

0 comments on commit f3055dc

Please sign in to comment.