Skip to content

Commit e8a855d

Browse files
ci: register dev and prod deployments in github environments
1 parent dc5be92 commit e8a855d

3 files changed

Lines changed: 7 additions & 0 deletions

File tree

.github/workflows/deploy-prod.yml

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -32,6 +32,7 @@ jobs:
3232
manifest_path: k8s/prod/bot.yaml
3333
manifest_ref: master
3434
commit_message: "chore(k8s): update prod image to {sha}"
35+
environment: prod
3536
secrets:
3637
APP_ID: ${{ secrets.APP_ID }}
3738
APP_PRIVATE_KEY: ${{ secrets.APP_PRIVATE_KEY }}

.github/workflows/deploy-to-dev.yml

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -89,6 +89,7 @@ jobs:
8989
manifest_path: k8s/dev/bot.yaml
9090
manifest_ref: master
9191
commit_message: ${{ needs.resolve.outputs.commit_message }}
92+
environment: dev
9293
secrets:
9394
APP_ID: ${{ secrets.APP_ID }}
9495
APP_PRIVATE_KEY: ${{ secrets.APP_PRIVATE_KEY }}

.github/workflows/deploy.yml

Lines changed: 5 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -23,6 +23,10 @@ on:
2323
description: "Commit message template ({sha} will be replaced with short SHA)"
2424
required: true
2525
type: string
26+
environment:
27+
description: "Deployment environment name"
28+
required: true
29+
type: string
2630
secrets:
2731
APP_ID:
2832
description: "GitHub App ID for bypassing branch protection"
@@ -38,6 +42,7 @@ jobs:
3842
deploy:
3943
name: Update Manifest
4044
runs-on: ubuntu-latest
45+
environment: ${{ inputs.environment }}
4146
steps:
4247
- name: Generate GitHub App token
4348
id: app-token

0 commit comments

Comments
 (0)