Restart Component #803
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: Restart Component | |
on: | |
workflow_dispatch: | |
schedule: | |
- cron: '0 */4 * * *' | |
permissions: | |
id-token: write | |
jobs: | |
restart-components: | |
runs-on: ubuntu-latest | |
steps: | |
- name: 'Az CLI login' | |
uses: azure/login@v2 | |
with: | |
client-id: ${{ vars.AZURE_CLIENT_ID }} | |
tenant-id: ${{ vars.AZURE_TENANT_ID }} | |
allow-no-subscriptions: true | |
- name: 'Get Azure principal token for Radix' | |
run: | | |
token=$(az account get-access-token --resource 6dae42f8-4368-4678-94ff-3960e28e3630 --query=accessToken -otsv) | |
echo "::add-mask::$token" | |
echo "APP_SERVICE_ACCOUNT_TOKEN=$token" >> $GITHUB_ENV | |
- name: Restart | |
uses: equinor/radix-github-actions@v1 | |
with: | |
args: > | |
restart | |
component | |
--application oauth-demo | |
--environment dev | |
--component proxy | |
--context development |