Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

[Feature][Add] Added Azure DevOps CI/CD pipeline #5

Merged
merged 17 commits into from
May 15, 2021
Prev Previous commit
Next Next commit
Added Azure CI
Signed-off-by: iamabhishek-dubey <abhishekbhardwaj510@gmail.com>
iamabhishek-dubey committed May 15, 2021

Verified

This commit was created on GitHub.com and signed with GitHub’s verified signature.
commit 62f204070b1f628c1e6d235b10eeb8655b8bb7e5
24 changes: 24 additions & 0 deletions .azure-pipeline/pipeline.yml
Original file line number Diff line number Diff line change
@@ -7,6 +7,9 @@ pr:
include:
- master

variables:
- group: RuntimeVariables

stages:
- stage: precheck
jobs:
@@ -110,3 +113,24 @@ stages:
env:
GITHUB_TOKEN: $(GithubToken)
condition: and(succeeded(), eq(variables['Build.SourceBranch'], 'refs/heads/master'))

- stage: release_quay
dependsOn: ["build", "build_image"]
jobs:
- job: quay
dependsOn: []
pool:
vmImage: "ubuntu-18.04"
steps:
- task: Docker@2
displayName: "Publish quay image"
inputs:
containerRegistry: 'QuayServiceConnection'
repository: 'quay.io/opstree/k8s-secret-injector'
command: 'buildAndPush'
Dockerfile: '**/Dockerfile'
tags: |
latest
$(Build.SourceBranchName)
condition: and(succeeded(), eq(variables['Build.SourceBranch'], 'refs/heads/master'))