Skip to content
GitLab
Explore
Sign in
Register
Primary navigation
Search or go to…
Project
G
Group17AuthenticationMicroservice
Manage
Activity
Members
Labels
Plan
Issues
Issue boards
Milestones
Wiki
Requirements
Code
Merge requests
Repository
Branches
Commits
Tags
Repository graph
Compare revisions
Locked files
Build
Pipelines
Jobs
Pipeline schedules
Test cases
Artifacts
Deploy
Releases
Package registry
Model registry
Operate
Environments
Terraform modules
Monitor
Incidents
Analyze
Value stream analytics
Contributor analytics
CI/CD analytics
Repository analytics
Code review analytics
Issue analytics
Insights
Model experiments
Help
Help
Support
GitLab documentation
Compare GitLab plans
Community forum
Contribute to GitLab
Provide feedback
Terms and privacy
Keyboard shortcuts
?
Snippets
Groups
Projects
Show more breadcrumbs
Asif, Adiv (UG - Comp Sci & Elec Eng)
Group17AuthenticationMicroservice
Commits
d1578d5c
Commit
d1578d5c
authored
2 years ago
by
Adiv Asif
Browse files
Options
Downloads
Patches
Plain Diff
Set up CI with Azure Pipelines
[skip ci]
parent
7c833b48
No related branches found
Branches containing commit
No related tags found
No related merge requests found
Changes
1
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
azure-pipelines.yml
+39
-0
39 additions, 0 deletions
azure-pipelines.yml
with
39 additions
and
0 deletions
azure-pipelines.yml
0 → 100644
+
39
−
0
View file @
d1578d5c
# Docker
# Build and push an image to Azure Container Registry
# https://docs.microsoft.com/azure/devops/pipelines/languages/docker
trigger
:
-
main
resources
:
-
repo
:
self
variables
:
# Container registry service connection established during pipeline creation
dockerRegistryServiceConnection
:
'
f98d21f0-ada0-46f7-85df-07e5a6cc7154'
imageRepository
:
'
authenticationmicroservice'
containerRegistry
:
'
group17.azurecr.io'
dockerfilePath
:
'
$(Build.SourcesDirectory)/Dockerfile'
tag
:
'
$(Build.BuildId)'
# Agent VM image name
vmImageName
:
'
ubuntu-latest'
stages
:
-
stage
:
Build
displayName
:
Build and push stage
jobs
:
-
job
:
Build
displayName
:
Build
pool
:
vmImage
:
$(vmImageName)
steps
:
-
task
:
Docker@2
displayName
:
Build and push an image to container registry
inputs
:
command
:
buildAndPush
repository
:
$(imageRepository)
dockerfile
:
$(dockerfilePath)
containerRegistry
:
$(dockerRegistryServiceConnection)
tags
:
|
$(tag)
This diff is collapsed.
Click to expand it.
Preview
0%
Loading
Try again
or
attach a new file
.
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Save comment
Cancel
Please
register
or
sign in
to comment