Skip to content

Commit

Permalink
pushing releases to new repo
Browse files Browse the repository at this point in the history
  • Loading branch information
kafkasl committed Jun 20, 2022
1 parent f6ec940 commit 30d8f67
Showing 1 changed file with 24 additions and 0 deletions.
24 changes: 24 additions & 0 deletions .github/workflows/ci.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -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:
Expand All @@ -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]
Expand Down

0 comments on commit 30d8f67

Please sign in to comment.