Skip to content

Commit

Permalink
Update google-cloudrun-docker.yml
Browse files Browse the repository at this point in the history
  • Loading branch information
davidh16 authored Aug 28, 2024
1 parent e10e6f5 commit 552885d
Showing 1 changed file with 15 additions and 15 deletions.
30 changes: 15 additions & 15 deletions .github/workflows/google-cloudrun-docker.yml
Original file line number Diff line number Diff line change
Expand Up @@ -96,21 +96,6 @@ jobs:
-t "${{ env.GAR_LOCATION }}-docker.pkg.dev/${{ env.PROJECT_ID }}/${{ env.SERVICE }}/${{ env.SERVICE }}:${{ github.sha }}" ./
docker push "${{ env.GAR_LOCATION }}-docker.pkg.dev/${{ env.PROJECT_ID }}/${{ env.SERVICE }}/${{ env.SERVICE }}:${{ github.sha }}"
- name: Get changed files in the docs folder
id: changed-files-specific
uses: tj-actions/changed-files@v34
with:
files: migrations/**

- name: Debug - List Changed Files
run: echo "${{ steps.changed-files-specific.outputs.any_changed }}"

- name: Execute Cloud Run Migration Job
if: steps.changed-files-specific.outputs.any_changed == 'true'
run: |
gcloud run jobs execute migrate \
--project ${{ env.PROJECT_ID }} \
# END - Docker auth and build

- name: Prepare Environment Variables for Deployment
Expand Down Expand Up @@ -139,3 +124,18 @@ jobs:
# If required, use the Cloud Run url output in later steps
- name: Show Output
run: echo ${{ steps.deploy.outputs.url }}

- name: Get changed files in the docs folder
id: changed-files-specific
uses: tj-actions/changed-files@v34
with:
files: migrations/**

- name: Debug - List Changed Files
run: echo "${{ steps.changed-files-specific.outputs.any_changed }}"

- name: Execute Cloud Run Migration Job
if: steps.changed-files-specific.outputs.any_changed == 'true'
run: |
gcloud run jobs execute migrate \
--project ${{ env.PROJECT_ID }} \

0 comments on commit 552885d

Please sign in to comment.