From eb02c93dc01960798e256d89745853f7d3cbb7ef 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, 11 Feb 2023 20:47:46 +0000 Subject: [PATCH] Create eoefans-spider-azure-deploy.yml --- .../workflows/eoefans-spider-azure-deploy.yml | 44 +++++++++++++++++++ 1 file changed, 44 insertions(+) create mode 100644 .github/workflows/eoefans-spider-azure-deploy.yml diff --git a/.github/workflows/eoefans-spider-azure-deploy.yml b/.github/workflows/eoefans-spider-azure-deploy.yml new file mode 100644 index 0000000..e051779 --- /dev/null +++ b/.github/workflows/eoefans-spider-azure-deploy.yml @@ -0,0 +1,44 @@ +name: Deploy EOEFANS API to Azure + +on: + push: + branches: [ "release" ] + pull_request: + types: [synchronize, closed] + branches: [ "release" ] + +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" + + +jobs: + + Deploy: + permissions: + contents: none + + runs-on: [self-hosted, Linux] + environment: + name: 'Development' + url: ${{ steps.deploy-to-webapp.outputs.webapp-url }} + + steps: + - uses: actions/checkout@v3 + + - name: Log in to VLINK Container Registry + uses: docker/login-action@v2 + with: + registry: ${{ env.IMAGE_REGISTRY }} + username: ${{ github.actor }} + password: ${{ secrets.GITHUB_TOKEN }} + + - name: Deploy to Azure Web App + id: deploy-to-webapp + uses: azure/webapps-deploy@v2 + 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