Created
January 14, 2025 07:54
-
-
Save Debjyoti30/bf16184bfd45e9c749ca19d030fb7d35 to your computer and use it in GitHub Desktop.
Pack and push Dockerfile as an Artifact
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| trigger: | |
| - feature/POC-Demo | |
| pool: | |
| vmImage: 'ubuntu-latest' | |
| variables: | |
| packageName: 'LibraryContainerAppJob' | |
| packageVersion: '$(Build.BuildNumber)' | |
| sourcePath: 'ConsoleDemo.Library' | |
| outputPath: '$(Build.ArtifactStagingDirectory)' | |
| steps: | |
| - task: ArchiveFiles@2 | |
| displayName: 'Package Dockerfile and related files' | |
| inputs: | |
| rootFolderOrFile: '$(sourcePath)' | |
| includeRootFolder: false | |
| archiveType: 'zip' | |
| archiveFile: '$(outputPath)/$(packageName).$(packageVersion).zip' | |
| - task: PublishBuildArtifacts@1 | |
| displayName: 'Publish Package to Azure Artifacts' | |
| inputs: | |
| PathtoPublish: '$(outputPath)/$(packageName).$(packageVersion).zip' | |
| ArtifactName: '$(packageName)' | |
| publishLocation: 'AzureArtifacts' |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment