diff --git a/.github/workflows/eoefans-api-azure-deploy.yml b/.github/workflows/eoefans-api-azure-deploy.yml index 6cb89fd..1788c84 100644 --- a/.github/workflows/eoefans-api-azure-deploy.yml +++ b/.github/workflows/eoefans-api-azure-deploy.yml @@ -2,17 +2,22 @@ name: Deploy EOEFANS API to Azure on: push: - branches: [ "release" ] +# branches: [ "release" ] # pull_request: # types: [synchronize, closed] # branches: [ "release" ] + workflow_dispatch: + inputs: + deploy_version: + required: true + type: string env: AZURE_WEBAPP_NAME: "eoefans-api" # set this to your application's name IMAGE_REGISTRY: "containers.vlink.dev" IMAGE_REPO: "eoefans" IMAGE_NAME: "eoefans-api" - + DEPLOY_VERSION: ${{ inputs.deploy_version }} jobs: @@ -41,4 +46,4 @@ jobs: with: app-name: ${{ env.AZURE_WEBAPP_NAME }} publish-profile: ${{ secrets.AZURE_CREDENTIALS_EOEFANS_API }} - images: ${{ env.IMAGE_REGISTRY }}/${{ env.IMAGE_REPO }}/${{ env.IMAGE_NAME }}:latest + images: ${{ env.IMAGE_REGISTRY }}/${{ env.IMAGE_REPO }}/${{ env.IMAGE_NAME }}:${{ env.DEPLOY_VERSION }}