Skip to content

Commit

Permalink
Update azure-pipelines.yml for Azure Pipelines
Browse files Browse the repository at this point in the history
  • Loading branch information
fabricioveronez committed Aug 30, 2023
1 parent 01f2222 commit 486d7d9
Showing 1 changed file with 33 additions and 7 deletions.
40 changes: 33 additions & 7 deletions azure-pipelines.yml
Original file line number Diff line number Diff line change
Expand Up @@ -8,12 +8,38 @@ trigger:

pool:
vmImage: ubuntu-latest

stages:
- stage: CI
displayName: Integração Contínua
jobs:
- job: Construção da imagem docker
steps:
- task: Docker@2
inputs:
containerRegistry: 'DockerHub'
repository: 'fabricioveronez/rotten-potatoes'
command: 'buildAndPush'
Dockerfile: 'src/Dockerfile'
buildContext: 'src'
tags: |
$(Build.BuildId)
latest
- stage: CD
displayName: Pipeline de entrega continua
dependsOn: CI
jobs:
- job: Deploy
displayName: Deploy no Kubernetes
steps:
- task: KubernetesManifest@0
inputs:
action: 'deploy'
kubernetesServiceConnection: 'k8s-default-1646655554647'
namespace: 'default'
manifests: 'k8s/*'
containers: 'fabricioveronez/live-conversao-temperatura:$(Build.BuildId)'


steps:
- script: echo Hello, world!
displayName: 'Run a one-line script'

- script: |
echo Add other tasks to build, test, and deploy your project.
echo See https://aka.ms/yaml
displayName: 'Run a multi-line script'

0 comments on commit 486d7d9

Please sign in to comment.