Change to owner #6
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
name: Deploy to SirenCon Kubernetes Cluster | |
on: | |
push: | |
branches: | |
- deploy/prod | |
jobs: | |
deploy: | |
runs-on: ubuntu-24.04 | |
steps: | |
- uses: actions/checkout@v2 | |
- uses: actions/create-github-app-token@v1 | |
id: app-token | |
with: | |
app-id: ${{ vars.WORKFLOW_TRIGGER_APP_ID }} | |
private-key: ${{ secrets.WORKFLOW_TRIGGER_SSH_PRIVATE_KEY }} | |
owner: SirenCon | |
- name: Invoke deployment workflow | |
run: | | |
BRANCH=${GITHUB_HEAD_REF:-${GITHUB_REF#refs/heads/}} | |
DEPLOY_REVISION=$(git rev-parse --short HEAD) | |
DEPLOY_ENVIRONMENT=${BRANCH#deploy/} | |
gh auth status | |
gh workflow run deploy.yml \ | |
--repo SirenCon/fm-apis-deployment \ | |
--ref main \ | |
--field deploy_revision=$DEPLOY_REVISION \ | |
--field deploy_environment=$DEPLOY_ENVIRONMENT | |
env: | |
GH_TOKEN: ${{ steps.app-token.outputs.token }} |