Skip to content

Commit

Permalink
uat yaml
Browse files Browse the repository at this point in the history
  • Loading branch information
maudhelen committed Oct 15, 2023
1 parent 3024f12 commit 19920f4
Showing 1 changed file with 25 additions and 27 deletions.
52 changes: 25 additions & 27 deletions .github/workflows/ie-bank-frontend.yml
Original file line number Diff line number Diff line change
@@ -1,11 +1,10 @@
# Docs for the Azure Web Apps Deploy action: https://github.com/Azure/webapps-deploy
# More GitHub Actions for Azure: https://github.com/Azure/actions

name: ie-bank-frontend

on:
push:
branches:
- uat
- main
workflow_dispatch:

env:
Expand Down Expand Up @@ -36,12 +35,11 @@ jobs:
name: node-app-dev
path: dist-dev/


- name: build for uat
run: |
npm install
npm run build -- --mode uat --dest dist-uat ## this command will build the vue.js app using .env.uat variables into the dist-uat/ folder
- name: Upload artifact for deployment job
uses: actions/upload-artifact@v3
with:
Expand Down Expand Up @@ -71,27 +69,27 @@ jobs:
with:
app-name: ${{ env.FRONTEND_WEBAPP_DEV }}
package: .

deploy-uat:
runs-on: ubuntu-latest
needs: [build, deploy-dev]
environment:
name: 'User Acceptance Testing'
url: ${{ steps.deploy-to-webapp.outputs.webapp-url }}

steps:
- name: Download artifact from build job
uses: actions/download-artifact@v2
with:
name: node-app-uat

- uses: azure/login@v1
with:
creds: ${{ secrets.AZURE_CREDENTIALS }}
runs-on: ubuntu-latest
needs: [build, deploy-dev]
environment:
name: "User Acceptance Testing"
url: ${{ steps.deploy-to-webapp.outputs.webapp-url }}
steps:
- name: Download artifact from build job
uses: actions/download-artifact@v2
with:
name: node-app-uat
- uses: azure/login@v1
with:
creds: ${{ secrets.AZURE_CREDENTIALS }}

- name: 'Deploy to Azure Web App'
id: deploy-to-webapp
uses: azure/webapps-deploy@v2
with:
app-name: ${{ env.FRONTEND_WEBAPP_UAT }}
package: .
- name: "Deploy to Azure Web App"
id: deploy-to-webapp
uses: azure/webapps-deploy@v2
with:
app-name: ${{ env.FRONTEND_WEBAPP_UAT }}
package: .

0 comments on commit 19920f4

Please sign in to comment.