Skip to content

Commit

Permalink
chore: add azure cli
Browse files Browse the repository at this point in the history
  • Loading branch information
kazami139 committed Mar 17, 2023
1 parent c083ca3 commit b576d2c
Show file tree
Hide file tree
Showing 2 changed files with 50 additions and 1 deletion.
4 changes: 4 additions & 0 deletions .github/workflows/eoefans-api-azure-deploy.yml
Original file line number Diff line number Diff line change
Expand Up @@ -47,6 +47,10 @@ jobs:
steps:
- uses: actions/checkout@v3

- name: install azure cli
run: curl -sL https://aka.ms/InstallAzureCLIDeb | sudo bash
- run: az --version

- name: Log in to VLINK Container Registry
uses: docker/login-action@v2
with:
Expand Down
47 changes: 46 additions & 1 deletion .github/workflows/eoefans-spider-azure-deploy.yml
Original file line number Diff line number Diff line change
Expand Up @@ -45,14 +45,59 @@ jobs:

steps:
- uses: actions/checkout@v3


- name: install azure cli
run: curl -sL https://aka.ms/InstallAzureCLIDeb | sudo bash
- run: az --version

- name: Log in to VLINK Container Registry
uses: docker/login-action@v2
with:
registry: ${{ env.IMAGE_REGISTRY }}
username: ${{ github.actor }}
password: ${{ secrets.GITHUB_TOKEN }}

- uses: azure/login@v1
with:
creds: '${{ env.AZURE_CREDENTIALS }}'

- name: Set Web App configuration
uses: Azure/appservice-settings@v1
with:
app-name: ${{ env.AZURE_WEBAPP_NAME }}
app-settings-json: |
[
{
"name": "DOCKER_REGISTRY_SERVER_PASSWORD",
"value": "${{ secrets.GITHUB_TOKEN }}",
"slotSetting": false
},
{
"name": "DOCKER_REGISTRY_SERVER_URL",
"value": "https://${{ env.IMAGE_REGISTRY }}",
"slotSetting": false
},
{
"name": "DOCKER_REGISTRY_SERVER_USERNAME",
"value": "${{ github.actor }}",
"slotSetting": false
},
{
"name": "SENTRY_RELEASE",
"value": "${{ env.DEPLOY_VERSION }}",
"slotSetting": false
},
{
"name": "SENTRY_ENV",
"value": "production",
"slotSetting": false
},
{
"name": "VERSION",
"value": "${{ env.DEPLOY_VERSION }}",
"slotSetting": false
}
]
- name: Deploy to Azure Web App
id: deploy-to-webapp
uses: azure/webapps-deploy@v2
Expand Down

0 comments on commit b576d2c

Please sign in to comment.