Skip to content

Commit

Permalink
Added workflows to deploy to staging (#117)
Browse files Browse the repository at this point in the history
* Added workflows to deploy to staging

* Removed path to trigger on all function apps

* Fixed remote trigger template

* Standardized variable names
  • Loading branch information
candace-campbell authored Jul 14, 2023
1 parent 22fc02f commit 4bad6e5
Show file tree
Hide file tree
Showing 2 changed files with 24 additions and 1 deletion.
15 changes: 15 additions & 0 deletions .github/workflows/deploy-rc-staging.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,15 @@
name: "Deploy Release Candidate - Staging"

on:
workflow_dispatch:
push:
tags:
- '*'

jobs:
staging:
uses: ./.github/workflows/remote-cd-trigger-template.yml
with:
WORKFLOW: function-app-rc-matrix.yml
REF: ${{ github.ref }} # Resolves to the tag that is pushed
secrets: inherit
10 changes: 9 additions & 1 deletion .github/workflows/remote-cd-trigger-template.yml
Original file line number Diff line number Diff line change
Expand Up @@ -7,6 +7,11 @@ on:
type: string
description: "Workflow yml file that should be triggered."
required: true
REF:
type: string
description: "Git tag or branch the workflow is running on."
required: false
default: 'main'

jobs:
invoke-cd-trigger:
Expand Down Expand Up @@ -34,5 +39,8 @@ jobs:
owner: 'cdcent',
repo: 'data-exchange-upload-devops',
workflow_id: '${{ inputs.WORKFLOW }}',
ref: 'main'
ref: main
inputs: {
DATA_EXCHANGE_UPLOAD_REF: ${{ inputs.REF }}
}
})

0 comments on commit 4bad6e5

Please sign in to comment.