40 lines
1.1 KiB
YAML
40 lines
1.1 KiB
YAML
name: Update OAuth2 Proxy version at API-GW
|
|
|
|
on:
|
|
workflow_call:
|
|
inputs:
|
|
OAUTH2_PROXY_IMAGE:
|
|
type: string
|
|
required: true
|
|
secrets:
|
|
VAULT_HOST:
|
|
required: true
|
|
VAULT_ROLE_ID:
|
|
required: true
|
|
VAULT_SECRET_ID:
|
|
required: true
|
|
|
|
jobs:
|
|
Deploy:
|
|
runs-on: [self-hosted, research]
|
|
steps:
|
|
- name: Import Secrets
|
|
id: secrets
|
|
uses: hashicorp/vault-action@v2.3.1
|
|
with:
|
|
url: ${{ secrets.VAULT_HOST }}
|
|
method: approle
|
|
roleId: ${{ secrets.VAULT_ROLE_ID }}
|
|
secretId: ${{ secrets.VAULT_SECRET_ID }}
|
|
exportEnv: true
|
|
secrets: |
|
|
devops/data/github/users/sal-devops token | GITHUB_TOKEN ;
|
|
|
|
- uses: convictional/trigger-workflow-and-wait@v1.6.1
|
|
with:
|
|
owner: philips-internal
|
|
repo: terraform-api-gateway
|
|
github_token: ${{ env.GITHUB_TOKEN }}
|
|
client_payload: '{"oauth2proxytag": "${{ inputs.OAUTH2_PROXY_IMAGE }}"}'
|
|
workflow_file_name: set-images-version-cd.yml
|
|
ref: main |