Skip to content

Commit

Permalink
DR-3100: Cherry-pick dev image to prod/public gcr on merge to dev (#1509
Browse files Browse the repository at this point in the history
)

* Output tag; Call new cherry-pick action; Wait to notify until after job

* test job in another action

* Revert "test job in another action"

This reverts commit 87658fe.
  • Loading branch information
snf2ye authored Oct 11, 2023
1 parent 1f87d4b commit 23a005d
Showing 1 changed file with 12 additions and 0 deletions.
12 changes: 12 additions & 0 deletions .github/workflows/dev-image-update.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -23,6 +23,8 @@ env:

jobs:
update_image:
outputs:
ui_image_tag: ${{ steps.bumperstep.outputs.tag }}
strategy:
matrix:
os: [ubuntu-latest]
Expand All @@ -43,6 +45,7 @@ jobs:
path: datarepo-helm-definitions
- name: 'Bump the tag to a new version'
uses: broadinstitute/datarepo-actions/actions/main@0.67.0
id: bumperstep
with:
actions_subcommand: 'bumper'
role_id: ${{ secrets.ROLE_ID }}
Expand Down Expand Up @@ -95,12 +98,21 @@ jobs:
needs: update_image
uses: ./.github/workflows/helmtagbump.yaml
secrets: inherit
cherry_pick_image_to_production_gcr:
needs: update_image
uses: DataBiosphere/jade-data-repo/.github/workflows/cherry-pick-image.yaml@1.536.0
secrets: inherit
with:
gcr_tag: ${{ needs.update_image.outputs.ui_image_tag }}
source_gcr_url: 'gcr.io/broad-jade-dev/jade-data-repo-ui'
target_gcr_url: 'gcr.io/datarepo-public-gcr/jade-data-repo-ui'
action_notify:
runs-on: ubuntu-latest
if: always()
needs:
- update_image
- helm_tag_bump
- cherry_pick_image_to_production_gcr
steps:
- name: Slack job status
uses: broadinstitute/action-slack@v3.15.0
Expand Down

0 comments on commit 23a005d

Please sign in to comment.