From 2ae208cb09b3fbb231f29a06b5efdf4b3c571ea9 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?George=20Kazami=20=5B=E4=B9=94=E6=B2=BB=C2=B7=E9=A2=A8?= =?UTF-8?q?=E8=A6=8B=5D?= Date: Sat, 25 Feb 2023 01:31:29 +0000 Subject: [PATCH] Update eoefans-api-azure-deploy.yml --- .github/workflows/eoefans-api-azure-deploy.yml | 11 ++++++++--- 1 file changed, 8 insertions(+), 3 deletions(-) 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 }}