-
Notifications
You must be signed in to change notification settings - Fork 0
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
feat: import create|delete-review-app.yml github workflows from moder…
…ntribe/actions
- Loading branch information
Showing
2 changed files
with
80 additions
and
0 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,44 @@ | ||
name: Reusable Workflow - Create Review App | ||
on: | ||
workflow_call: | ||
inputs: | ||
app_name: | ||
required: true | ||
type: string | ||
description: Dokku Original App Name | ||
pr_number: | ||
required: false | ||
type: string | ||
description: Pull Request Number | ||
secrets: | ||
github_pat_token: | ||
required: true | ||
server: | ||
required: true | ||
ssh_private_key: | ||
required: true | ||
|
||
jobs: | ||
create_review_app: | ||
runs-on: ubuntu-latest | ||
steps: | ||
- name: Set common variables | ||
uses: moderntribe/actions/utils/common-variables@v1 | ||
with: | ||
app_name: ${{ inputs.app_name }} | ||
pr_number: ${{ inputs.pr_number }} | ||
|
||
- name: Setup SSH | ||
uses: moderntribe/actions/utils/ssh-agent@v1 | ||
with: | ||
ssh_private_key: ${{ secrets.ssh_private_key }} | ||
server: ${{ secrets.server }} | ||
|
||
- name: Create review app ${{ inputs.review_app_name }} | ||
uses: moderntribe/actions/dokku/create-review-app@v1 | ||
with: | ||
app_name: ${{ inputs.app_name }} | ||
review_app_name: ${{ env.REVIEW_APP }} | ||
server: ${{ secrets.server }} | ||
github_pat_token: ${{ secrets.github_pat_token }} | ||
gha_url: ${{ env.GHA_URL }} |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,36 @@ | ||
name: Reusable Workflow - Delete Review App | ||
on: | ||
workflow_call: | ||
inputs: | ||
app_name: | ||
required: true | ||
type: string | ||
description: Dokku Original App Name | ||
pr_number: | ||
required: false | ||
type: string | ||
description: Pull Request Number | ||
secrets: | ||
github_pat_token: | ||
required: true | ||
server: | ||
required: true | ||
|
||
jobs: | ||
delete_review_app: | ||
runs-on: ubuntu-latest | ||
steps: | ||
- name: Set common variables | ||
uses: moderntribe/actions/utils/common-variables@v1 | ||
with: | ||
app_name: ${{ inputs.app_name }} | ||
pr_number: ${{ inputs.pr_number }} | ||
|
||
- name: Delete review app ${{ env.REVIEW_APP }} | ||
uses: moderntribe/actions/dokku/delete-review-app@v1 | ||
with: | ||
app_name: ${{ inputs.app_name }} | ||
review_app_name: ${{ env.REVIEW_APP }} | ||
server: ${{ secrets.server }} | ||
github_pat_token: ${{ secrets.github_pat_token }} | ||
gha_url: ${{ env.GHA_URL }} |