eShopOnContainers/.github/workflows/ordering-api-deploy.yml

40 lines
1.1 KiB
YAML
Raw Normal View History

2021-04-14 09:25:18 -05:00
name: Deploy ordering-api
on:
workflow_dispatch:
repository_dispatch:
types:
- deploy
workflow_run:
workflows: ["ordering-api"]
branches: [dev]
types: [completed]
env:
2021-04-15 08:37:30 -05:00
CHART: ordering-api
2021-04-15 08:39:39 -05:00
NAMESPACE: eshop
2021-04-15 08:36:37 -05:00
CHART_ROOT: deploy/k8s/helm
2021-04-14 09:25:18 -05:00
jobs:
2021-05-30 08:11:42 +02:00
deploy-to-aci:
if: ${{ github.event_name == 'workflow_dispatch' || github.event_name == 'repository_dispatch' || github.event.workflow_run.conclusion == 'success' }}
2021-04-14 09:25:18 -05:00
runs-on: ubuntu-latest
steps:
2021-04-15 08:33:56 -05:00
- uses: actions/checkout@v2
2021-04-14 09:25:18 -05:00
- uses: azure/login@v1
with:
creds: ${{ secrets.AZURE_CREDENTIALS }}
2021-05-30 08:11:42 +02:00
- name: 'Deploy to Azure Container Instances'
uses: 'azure/aci-deploy@v1'
2021-04-14 09:25:18 -05:00
with:
2021-05-30 08:11:42 +02:00
resource-group: aci-test-rg
dns-name-label: aci-test-rg${{ github.run_number }}
2021-05-30 08:21:22 +02:00
image: ghcr.io/variableclass/ordering.signalrhub:latest
2021-05-30 08:11:42 +02:00
registry-login-server: ghcr.io
registry-username: ${{ github.repository_owner }}
registry-password: ${{ secrets.GITHUB_TOKEN }}
2021-05-30 08:18:14 +02:00
name: aci-ordering-api-test
2021-05-30 08:11:42 +02:00
location: 'west us'