|
|
- name: Deploy ordering-api
-
- on:
- workflow_dispatch:
- repository_dispatch:
- types:
- - deploy
- workflow_run:
- workflows: ["ordering-api"]
- branches: [dev]
- types: [completed]
-
- env:
- CHART: ordering-api
- NAMESPACE: eshop
- CHART_ROOT: deploy/k8s/helm
-
- jobs:
- deploy-to-aci:
- if: ${{ github.event_name == 'workflow_dispatch' || github.event_name == 'repository_dispatch' || github.event.workflow_run.conclusion == 'success' }}
- runs-on: ubuntu-latest
-
- steps:
- - uses: actions/checkout@v2
-
- - uses: azure/login@v1
- with:
- creds: ${{ secrets.AZURE_CREDENTIALS }}
-
- - name: 'Deploy to Azure Container Instances'
- uses: 'azure/aci-deploy@v1'
- with:
- resource-group: aci-test-rg
- dns-name-label: aci-ordering-api-test
- image: ghcr.io/variableclass/ordering.api:latest
- registry-login-server: ghcr.io
- registry-username: ${{ github.repository_owner }}
- registry-password: ${{ secrets.GITHUB_TOKEN }}
- name: aci-ordering-api-test
|