You can not select more than 25 topics Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.

38 lines
1.0 KiB

3 years ago
  1. name: Deploy ordering-api
  2. on:
  3. workflow_dispatch:
  4. repository_dispatch:
  5. types:
  6. - deploy
  7. workflow_run:
  8. workflows: ["ordering-api"]
  9. branches: [dev]
  10. types: [completed]
  11. env:
  12. CHART: ordering-api
  13. NAMESPACE: eshop
  14. CHART_ROOT: deploy/k8s/helm
  15. jobs:
  16. deploy-to-aci:
  17. if: ${{ github.event_name == 'workflow_dispatch' || github.event_name == 'repository_dispatch' || github.event.workflow_run.conclusion == 'success' }}
  18. runs-on: ubuntu-latest
  19. steps:
  20. - uses: actions/checkout@v2
  21. - uses: azure/login@v1
  22. with:
  23. creds: ${{ secrets.AZURE_CREDENTIALS }}
  24. - name: 'Deploy to Azure Container Instances'
  25. uses: 'azure/aci-deploy@v1'
  26. with:
  27. resource-group: aci-test-rg
  28. dns-name-label: aci-ordering-api-test
  29. image: ghcr.io/variableclass/ordering.api:latest
  30. registry-login-server: ghcr.io
  31. registry-username: ${{ github.repository_owner }}
  32. registry-password: ${{ secrets.GITHUB_TOKEN }}
  33. name: aci-ordering-api-test