Skip to content

Commit

Permalink
update workflows
Browse files Browse the repository at this point in the history
  • Loading branch information
Mropat committed Aug 26, 2021
1 parent 8a8b5d2 commit 826a458
Show file tree
Hide file tree
Showing 5 changed files with 60 additions and 5 deletions.
2 changes: 1 addition & 1 deletion .github/workflows/build_dockerfile_on_release.yml
Original file line number Diff line number Diff line change
Expand Up @@ -31,4 +31,4 @@ jobs:
context: ./
file: ./Dockerfile
push: true
tags: "clinicalgenomics/trailblazer:${{github.event.release.tag_name}}, clinicalgenomics/trailblazer:latest"
tags: "clinicalgenomics/trailblazer:${{github.event.release.tag_name}}, clinicalgenomics/trailblazer:latest, clinicalgenomics/trailblazer-stage:${{github.event.release.tag_name}}"
7 changes: 4 additions & 3 deletions .github/workflows/bumpversion_on_merge_master.yml
Original file line number Diff line number Diff line change
Expand Up @@ -11,8 +11,9 @@ jobs:
name: Bump version and push tags to master
steps:
- name: Bump version
uses: Clinical-Genomics/bump2version-ci@master
uses: Clinical-Genomics/bump2version-ci@v3
env:
GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }}
BUMPVERSION_TOKEN: ${{ secrets.BUMPVERSION_TOKEN }}
BUMPVERSION_AUTHOR: ${{ secrets.BUMPVERSION_AUTHOR }}
BUMPVERSION_EMAIL: ${{ secrets.BUMPVERSION_EMAIL }}
GITHUB_REPOSITORY: ${{ github.repository }}
GITHUB_ACTOR: ${{ github.actor }}
27 changes: 27 additions & 0 deletions .github/workflows/deploy_prod.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,27 @@
---

name: Deploy release to production environment

on:
workflow_dispatch:
inputs:
tag_name:
description: 'Release tag'


jobs:
create_deployment:
runs-on: ubuntu-latest
steps:
- run: |
curl \
--fail \
-X POST \
-H "Accept: application/vnd.github.v3+json" \
-H "Authorization: token ${{ secrets.BUMPVERSION_TOKEN }}" \
https://api.github.com/repos/${{ github.repository }}/deployments \
-d '{
"ref": "${{ github.event.inputs.tag_name }}",
"environment": "production",
"auto_merge": false,
"description": "${{secrets.DEPLOYMENT_INFO}}"}'
27 changes: 27 additions & 0 deletions .github/workflows/deploy_stage.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,27 @@
---

name: Deploy branch to staging environment

on:
workflow_dispatch:
inputs:
branch_name:
description: 'Branch name'


jobs:
create_deployment:
runs-on: ubuntu-latest
steps:
- run: |
curl \
--fail \
-X POST \
-H "Accept: application/vnd.github.v3+json" \
-H "Authorization: token ${{ secrets.BUMPVERSION_TOKEN }}" \
https://api.github.com/repos/${{ github.repository }}/deployments \
-d '{
"ref": "${{ github.event.inputs.branch_name }}",
"environment": "stage",
"auto_merge": false,
"description": "${{secrets.DEPLOYMENT_INFO}}"}'
2 changes: 1 addition & 1 deletion .github/workflows/test_and_coverage.yml
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
name: TB CI

on: ["pull_request"]
on: [push]

jobs:

Expand Down

0 comments on commit 826a458

Please sign in to comment.