Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

add(deploy vm workflows) #21

Open
wants to merge 1 commit into
base: main
Choose a base branch
from
Open
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
25 changes: 25 additions & 0 deletions .github/workflows/deploy_prod.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,25 @@
---
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": "deploy_janus_prod"}'
25 changes: 25 additions & 0 deletions .github/workflows/deploy_stage.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,25 @@
---
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": "deploy_janus_stage"}'
Loading