Skip to content

Commit

Permalink
Set up CI with Azure Pipelines for PPE
Browse files Browse the repository at this point in the history
[skip ci]
  • Loading branch information
mmpotulo28 committed Nov 26, 2024
1 parent 84b30bd commit 00c138e
Showing 1 changed file with 29 additions and 0 deletions.
29 changes: 29 additions & 0 deletions azure-pipelines-ppe.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,29 @@
pool:
vmImage: ubuntu-latest

variables:
- group: NextJsEnvironmentVariablesPPE

steps:
- task: NodeTool@0
inputs:
versionSpec: '20.x'
displayName: 'Install Node.js'

- script: |
npm install
displayName: 'Install dependencies'

- script: |
npm run build
displayName: 'Build Next.js application'
env:
ALGOLIA_APP_ID: $(ALGOLIA_APP_ID)
ALGOLIA_API_KEY: $(ALGOLIA_API_KEY)

- task: PublishBuildArtifacts@1
inputs:
PathtoPublish: '.next' # Update this path to match your build output
ArtifactName: 'drop'
publishLocation: 'Container'
displayName: 'Publish build artifacts'

0 comments on commit 00c138e

Please sign in to comment.