-
Notifications
You must be signed in to change notification settings - Fork 3
/
azure-pipelines.yml
54 lines (50 loc) · 1.42 KB
/
azure-pipelines.yml
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
trigger:
- main
variables:
tag: '$(Build.BuildId)'
image: sierrasoftworks/honeypot
resources:
repositories:
- repository: templates
type: github
name: SierraSoftworks/devops-pipelines
endpoint: SierraSoftworks
extends:
template: kubernetes/app.yml@templates
parameters:
build:
- job: build_package
displayName: Build App Package
pool:
vmImage: ubuntu-latest
steps:
- script: |
export GOOS=linux
export GOARCH=amd64
go build -o honeypot
- publish: ./honeypot
artifact: package
- job: build_docker
displayName: Build Docker Image
steps:
- task: Docker@2
displayName: Build Docker Image
inputs:
command: buildAndPush
dockerfile: 'Dockerfile'
containerRegistry: Docker Hub
repository: $(image)
tags: |
latest
$(tag)
manifests: ./.deploy
containers: |
$(image):$(tag)
staging:
namespace: honeypot-staging
environment: staging-honeypot-sierrasoftworks-com.honeypot-staging
healthcheck: https://staging.honeypot.sierrasoftworks.com/api/v1/stats
production:
namespace: honeypot-prod
environment: honeypot-sierrasoftworks-com.honeypot-prod
healthcheck: https://honeypot.sierrasoftworks.com/api/v1/stats