Add deploy_aks #1
Workflow file for this run
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: Manual deployment | |
on: | |
push: | |
branches: [ 528-add-deploy-workflow ] | |
workflow_dispatch: | |
inputs: | |
environment: | |
description: "Deploy environment ( development_aks, test, preprod or production )" | |
required: true | |
default: development_aks | |
type: choice | |
options: | |
- development_aks | |
sha: | |
description: Commit sha to be deployed | |
required: true | |
env: | |
CONTAINER_REGISTRY: ghcr.io | |
jobs: | |
deploy_v2_environment: | |
name: Deploy to ${{ github.event.inputs.environment }} environment | |
runs-on: ubuntu-latest | |
if: github.ref == 'refs/heads/main' && github.event_name == 'workflow_dispatch' | |
environment: | |
name: ${{ github.event.inputs.environment }} | |
steps: | |
- uses: actions/checkout@v3 | |
- name: Docker image tag | |
id: image | |
run: | | |
echo ::set-output name=tag::$CONTAINER_REGISTRY/$(echo $GITHUB_REPOSITORY | tr '[:upper:]' '[:lower:]'):$INPUT_GITHUB_SHA | |
env: | |
CONTAINER_REGISTRY: ${{ env.CONTAINER_REGISTRY }} | |
INPUT_GITHUB_SHA: ${{ inputs.sha }} | |
shell: bash | |
- uses: ./.github/workflows/actions/deploy_v2 | |
id: deploy | |
with: | |
environment_name: ${{ github.event.inputs.environment }} | |
docker_image: ${{ steps.image.outputs.tag }} | |
azure_credentials: ${{ secrets.AZURE_CREDENTIALS }} | |
arm-access-key: ${{ secrets.ARM_ACCESS_KEY }} | |
- uses: ./.github/workflows/actions/smoke-test-v2 | |
id: smoke-test | |
with: | |
environment: development_aks | |
azure_credentials: ${{ secrets.AZURE_CREDENTIALS }} |