From eb342485b399a6e224a0327e38714084dc4dec82 Mon Sep 17 00:00:00 2001 From: Harvey Date: Sun, 5 Feb 2023 15:34:34 +0800 Subject: [PATCH] Update deploy-aci.yml split the build/deploy, trigger with Pull Request & Push --- .github/workflows/deploy-aci.yml | 12 ++++++++++-- 1 file changed, 10 insertions(+), 2 deletions(-) diff --git a/.github/workflows/deploy-aci.yml b/.github/workflows/deploy-aci.yml index 21b7f15..5542de1 100644 --- a/.github/workflows/deploy-aci.yml +++ b/.github/workflows/deploy-aci.yml @@ -2,7 +2,12 @@ name: build docker and deploy to azure container instance on: push: - tags: ['v*.*.*'] + branches: + - main + pull_request: + branches: + - main + env: DockerImageName: opinion_news_crawler @@ -34,7 +39,10 @@ jobs: build-args: | version=${{ steps.tag.outputs.tag }} tags: ${{ secrets.ACR_ENDPOINT }}/${{ env.DockerImageName }}:${{ steps.tag.outputs.tag }} - + + deploy: + runs-on: ubuntu-latest + steps: - name: Login via Azure CLI uses: azure/login@v1 with: