From 6cd959b3bc423bdc57c3501c54d26b37d4154a13 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:33:13 +0000 Subject: [PATCH] Update eoefans-spider-azure-deploy.yml --- .github/workflows/eoefans-spider-azure-deploy.yml | 14 +++++++++----- 1 file changed, 9 insertions(+), 5 deletions(-) diff --git a/.github/workflows/eoefans-spider-azure-deploy.yml b/.github/workflows/eoefans-spider-azure-deploy.yml index 1dfa31f..14e7f32 100644 --- a/.github/workflows/eoefans-spider-azure-deploy.yml +++ b/.github/workflows/eoefans-spider-azure-deploy.yml @@ -1,18 +1,22 @@ name: Deploy EOEFANS SPIDER to Azure on: - push: - branches: [ "release" ] +# push: +# branches: [ "release" ] # pull_request: # types: [synchronize, closed] # branches: [ "release" ] - + workflow_dispatch: + inputs: + deploy_version: + required: true + type: string env: AZURE_WEBAPP_NAME: "eoefans-spider" # set this to your application's name IMAGE_REGISTRY: "containers.vlink.dev" IMAGE_REPO: "eoefans" IMAGE_NAME: "eoefans-spider" - + DEPLOY_VERSION: ${{ inputs.deploy_version }} jobs: @@ -41,4 +45,4 @@ jobs: with: app-name: ${{ env.AZURE_WEBAPP_NAME }} publish-profile: ${{ secrets.AZURE_CREDENTIALS_EOEFANS_SPIDER }} - images: ${{ env.IMAGE_REGISTRY }}/${{ env.IMAGE_REPO }}/${{ env.IMAGE_NAME }}:latest + images: ${{ env.IMAGE_REGISTRY }}/${{ env.IMAGE_REPO }}/${{ env.IMAGE_NAME }}:${{ env.DEPLOY_VERSION }}