Skip to content

Commit

Permalink
chore: extract the publish file to env
Browse files Browse the repository at this point in the history
  • Loading branch information
kazami139 committed Mar 17, 2023
1 parent 5488466 commit 414d66e
Show file tree
Hide file tree
Showing 2 changed files with 4 additions and 2 deletions.
3 changes: 2 additions & 1 deletion .github/workflows/eoefans-api-azure-deploy.yml
Original file line number Diff line number Diff line change
Expand Up @@ -20,6 +20,7 @@ run-name: "Deploy EOEFANS API to Azure: version ${{ inputs.deploy_version }}"
env:
AZURE_CREDENTIALS: ${{ secrets.AZURE_CREDENTIALS }}
AZURE_WEBAPP_NAME: "eoefans-api" # set this to your application's name
AZURE_PUBLISH_PROFILE: ${{ secrets.AZURE_CREDENTIALS_EOEFANS_API }}
IMAGE_REGISTRY: "containers.vlink.dev"
IMAGE_REPO: "eoefans"
IMAGE_NAME: "eoefans-api"
Expand Down Expand Up @@ -105,7 +106,7 @@ jobs:
uses: azure/webapps-deploy@v2
with:
app-name: ${{ env.AZURE_WEBAPP_NAME }}
publish-profile: ${{ secrets.AZURE_CREDENTIALS_EOEFANS_API }}
publish-profile: ${{ env.AZURE_PUBLISH_PROFILE }}
images: ${{ env.IMAGE_REGISTRY }}/${{ env.IMAGE_REPO }}/${{ env.IMAGE_NAME }}:${{ env.DEPLOY_VERSION }}

- name: Create Sentry release
Expand Down
3 changes: 2 additions & 1 deletion .github/workflows/eoefans-spider-azure-deploy.yml
Original file line number Diff line number Diff line change
Expand Up @@ -20,6 +20,7 @@ run-name: "Deploy EOEFANS SPIDER to Azure: version ${{ inputs.deploy_version }}"
env:
AZURE_CREDENTIALS: ${{ secrets.AZURE_CREDENTIALS }}
AZURE_WEBAPP_NAME: "eoefans-spider" # set this to your application's name
AZURE_PUBLISH_PROFILE: ${{ secrets.AZURE_CREDENTIALS_EOEFANS_SPIDER }}
IMAGE_REGISTRY: "containers.vlink.dev"
IMAGE_REPO: "eoefans"
IMAGE_NAME: "eoefans-spider"
Expand Down Expand Up @@ -104,7 +105,7 @@ jobs:
uses: azure/webapps-deploy@v2
with:
app-name: ${{ env.AZURE_WEBAPP_NAME }}
publish-profile: ${{ secrets.AZURE_CREDENTIALS_EOEFANS_SPIDER }}
publish-profile: ${{ env.AZURE_PUBLISH_PROFILE }}
images: ${{ env.IMAGE_REGISTRY }}/${{ env.IMAGE_REPO }}/${{ env.IMAGE_NAME }}:${{ env.DEPLOY_VERSION }}

- name: Create Sentry release
Expand Down

0 comments on commit 414d66e

Please sign in to comment.