Skip to content

Commit

Permalink
Merge pull request #157 from NIH-NCPI/bg/fd_1869
Browse files Browse the repository at this point in the history
[FD-1869] GH Action - MD version
  • Loading branch information
brendagutman authored Dec 13, 2024
2 parents 863696a + 6f56c28 commit 2f10721
Show file tree
Hide file tree
Showing 4 changed files with 10 additions and 4 deletions.
5 changes: 4 additions & 1 deletion .github/workflows/deploy_dev.yml
Original file line number Diff line number Diff line change
Expand Up @@ -5,7 +5,8 @@ name: 'Build and Deploy to Cloud Run'
on:
pull_request_review:
types: [submitted, edited] # submitted, reviewer edits the PR (ex comments)

workflow_dispatch: # This enables manual triggers

env:

PROJECT_ID: ${{ secrets.PROJECT_ID }}
Expand Down Expand Up @@ -44,6 +45,7 @@ jobs:
id: extract_version
run: |
VERSION=${{ github.event.pull_request.number }}
echo "VERSION=${VERSION}" >> $GITHUB_ENV
echo "Extracted Version: ${VERSION}"
- name: Generate .env.dev file
Expand Down Expand Up @@ -74,3 +76,4 @@ jobs:
service: '${{ env.SERVICE }}-dev'
region: '${{ env.REGION }}'
image: "${{ env.REGION }}-docker.pkg.dev/${{ env.PROJECT_ID }}/${{ env.SERVICE }}-dev/${{ env.IMAGE_NAME }}:${{ github.sha }}"
env_vars: VERSION=${VERSION}
3 changes: 2 additions & 1 deletion .github/workflows/deploy_prod.yml
Original file line number Diff line number Diff line change
Expand Up @@ -75,4 +75,5 @@ jobs:
with:
service: '${{ env.SERVICE }}'
region: '${{ env.REGION }}'
image: "${{ env.REGION }}-docker.pkg.dev/${{ env.PROJECT_ID }}/${{ env.SERVICE }}/${{ env.IMAGE_NAME }}:${{ github.sha }}"
image: "${{ env.REGION }}-docker.pkg.dev/${{ env.PROJECT_ID }}/${{ env.SERVICE }}/${{ env.IMAGE_NAME }}:${{ github.sha }}"
env_vars: VERSION=${VERSION}
3 changes: 2 additions & 1 deletion .github/workflows/deploy_qa.yml
Original file line number Diff line number Diff line change
Expand Up @@ -74,4 +74,5 @@ jobs:
with:
service: '${{ env.SERVICE }}-uat'
region: '${{ env.REGION }}'
image: "${{ env.REGION }}-docker.pkg.dev/${{ env.PROJECT_ID }}/${{ env.SERVICE }}-uat/${{ env.IMAGE_NAME }}:${{ github.sha }}"
image: "${{ env.REGION }}-docker.pkg.dev/${{ env.PROJECT_ID }}/${{ env.SERVICE }}-uat/${{ env.IMAGE_NAME }}:${{ github.sha }}"
env_vars: VERSION=${VERSION}
3 changes: 2 additions & 1 deletion .github/workflows/dispatch_deploy.yml
Original file line number Diff line number Diff line change
Expand Up @@ -88,4 +88,5 @@ jobs:
with:
service: ${{ env.SERVICE }}
region: '${{ env.REGION }}'
image: ${{ env.DOCKER_TAG }}
image: ${{ env.DOCKER_TAG }}
env_vars: ${{ github.event.inputs.version }}

0 comments on commit 2f10721

Please sign in to comment.