-
Notifications
You must be signed in to change notification settings - Fork 21
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
- Loading branch information
Showing
1 changed file
with
24 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 |
---|---|---|
|
@@ -333,6 +333,18 @@ jobs: | |
user_email: [email protected] | ||
user_name: Biomage CI/CD | ||
|
||
- name: Push production/develop template to releases repo for deployment | ||
if: (matrix.environment == 'production' && github.event_name == 'release' && github.event.action == 'released') || (matrix.environment == 'develop' && github.event_name == 'push') | ||
uses: dmnemec/[email protected] | ||
env: | ||
API_TOKEN_GITHUB: ${{ secrets.API_TOKEN_GITHUB }} | ||
with: | ||
source_file: ${{ steps.fill-metadata.outputs.deployment-name }}.yaml | ||
destination_repo: ${{ github.repository_owner }}/releases | ||
destination_folder: ${{ steps.fill-metadata.outputs.kubernetes-env }} | ||
user_email: [email protected] | ||
user_name: Biomage CI/CD | ||
|
||
- name: Change name of deployment file for staging deployment | ||
if: (github.event_name == 'pull_request' || github.event_name == 'push') && matrix.environment == 'staging' | ||
env: | ||
|
@@ -353,6 +365,18 @@ jobs: | |
user_email: [email protected] | ||
user_name: 'Biomage CI/CD' | ||
|
||
- name: Push staging deployment template to releases | ||
if: (github.event_name == 'pull_request' || github.event_name == 'push') && matrix.environment == 'staging' | ||
uses: dmnemec/[email protected] | ||
env: | ||
API_TOKEN_GITHUB: ${{ secrets.API_TOKEN_GITHUB }} | ||
with: | ||
source_file: ${{ steps.fill-metadata.outputs.ref-dashed }}.yaml | ||
destination_repo: ${{ github.repository_owner }}/releases | ||
destination_folder: staging-candidates/${{ steps.fill-metadata.outputs.deployment-name }} | ||
user_email: [email protected] | ||
user_name: 'Biomage CI/CD' | ||
|
||
- id: enable-admin-enforcement | ||
name: Re-enable admin enforcement | ||
uses: benjefferies/[email protected] | ||
|