Skip to content

Commit

Permalink
Merge pull request #335 from Tatsinnit/poc/az-pipeline
Browse files Browse the repository at this point in the history
  • Loading branch information
hsubramanianaks authored May 24, 2024
2 parents 3566972 + b3b2602 commit f82137c
Showing 1 changed file with 59 additions and 0 deletions.
59 changes: 59 additions & 0 deletions .github/workflows/build-publish-az-pipeline-poc.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,59 @@
#################################################################################
# OneBranch Pipelines #
# This pipeline was created by EasyStart from a sample located at: #
# https://aka.ms/obpipelines/easystart/samples #
# Documentation: https://aka.ms/obpipelines #
# Yaml Schema: https://aka.ms/obpipelines/yaml/schema #
# Retail Tasks: https://aka.ms/obpipelines/tasks #
# Support: https://aka.ms/onebranchsup #
#################################################################################

trigger: none

variables:
CDP_DEFINITION_BUILD_COUNT: $[counter('', 0)] # needed for onebranch.pipeline.version task https://aka.ms/obpipelines/versioning

resources:
repositories:
- repository: templates
type: git
name: OneBranch.Pipelines/GovernedTemplates
ref: refs/heads/main

extends:
template: v2/OneBranch.NonOfficial.CrossPlat.yml@templates # https://aka.ms/obpipelines/templates
parameters:
globalSdl: # https://aka.ms/obpipelines/sdl
# tsa:
# enabled: true # SDL results of non-official builds aren't uploaded to TSA by default.
# credscan:
# suppressionsFile: $(Build.SourcesDirectory)\.config\CredScanSuppressions.json
policheck:
break: true # always break the build on policheck issues. You can disable it by setting to 'false'
# suppression:
# suppressionFile: $(Build.SourcesDirectory)\.gdn\global.gdnsuppress

stages:
- stage: linux_stage
jobs:
- job: linux_job
pool:
type: linux

variables: # More settings at https://aka.ms/obpipelines/yaml/jobs
ob_outputDirectory: '$(Build.SourcesDirectory)/out' # this directory is uploaded to pipeline artifacts, reddog and cloudvault. More info at https://aka.ms/obpipelines/artifacts

steps: # These steps will be run in unrestricted container's network
- task: onebranch.pipeline.version@1
displayName: 'Setup BuildNumber'
inputs:
system: 'RevisionCounter'
major: '1'
minor: '0'
exclude_commit: true
- task: onebranch.pipeline.containercontrol@1
displayName: "Login to acr"
inputs:
command: login
acr_name: pocaksperitest
endpoint: pocaksperitest

0 comments on commit f82137c

Please sign in to comment.