Skip to content

Commit

Permalink
feat: add pull request stage
Browse files Browse the repository at this point in the history
  • Loading branch information
MounirAbdousNventive committed Jul 29, 2024
1 parent 9db012e commit 589d5c5
Show file tree
Hide file tree
Showing 2 changed files with 25 additions and 3 deletions.
2 changes: 1 addition & 1 deletion azure-pipeline/deploy_frontend.yml
Original file line number Diff line number Diff line change
Expand Up @@ -12,7 +12,7 @@ jobs:
displayName: "Deploy Frontend [${{ parameters.environment }}]"
environment: ${{ parameters.environment }}
pool:
vmImage: "windows-latest"
vmImage: "ubuntu-latest"
${{ if ne(parameters.depends_on, '')}}:
dependsOn: ${{ parameters.depends_on }}

Expand Down
26 changes: 24 additions & 2 deletions azure-pipelines.yml
Original file line number Diff line number Diff line change
@@ -1,10 +1,32 @@
trigger:
- releases/*
branches:
include:
- releases/*

name: v0.01$(Rev:.rr)

variables:
- group: web-react-skeleton-azure
- name: isPullRequest
value: $[eq(variables['Build.Reason'], 'PullRequest')]

stages:
- template: azure-pipeline/environments_loop.yml
- ${{ if eq(variables['isPullRequest'], 'false') }}:
- template: azure-pipeline/environments_loop.yml

- stage: Pull_request_build_stage
displayName: "Pull Request Build Stage"
jobs:
- job: EchoVARS
steps:
- script: |
echo ${{ eq(variables['isPullRequest'], 'true') }}
echo ${{ variables['Build.Reason'] }}
echo ${{ variables['isPullRequest'] }}
- job: Pull_request_build_job
displayName: "Pull Request Build Job"
steps:
- ${{ if eq(variables['isPullRequest'], 'true') }}:
- template: azure-pipeline/build_frontend.yml
parameters:
environment: "dev"

0 comments on commit 589d5c5

Please sign in to comment.