Skip to content

Commit

Permalink
Create eoefans-spider-azure-deploy.yml
Browse files Browse the repository at this point in the history
  • Loading branch information
kazami139 authored and GitHub Enterprise committed Feb 11, 2023
1 parent 3f096d7 commit eb02c93
Showing 1 changed file with 44 additions and 0 deletions.
44 changes: 44 additions & 0 deletions .github/workflows/eoefans-spider-azure-deploy.yml
Original file line number Diff line number Diff line change
@@ -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

0 comments on commit eb02c93

Please sign in to comment.