This repository has been archived by the owner on May 16, 2023. It is now read-only.
-
Notifications
You must be signed in to change notification settings - Fork 0
/
pipeline-windows-server-2016.yml
78 lines (72 loc) · 2 KB
/
pipeline-windows-server-2016.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
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
---
resource_types:
- name: ami
type: docker-image
source:
repository: jdub/ami-resource
- name: hipchat-notification-resource
type: docker-image
source:
repository: stepanstipl/concourse-hipchat-notification-resource
resources:
- name: packer-example
type: git
check_every: 10m
source:
uri: git@github.com:QuickbridgeLtd/packer.git
branch: concourse
private_key: |-
((github_private_key.github_private_key))
#- name: ubuntu-bionic-ami
# type: ami
# check_every: 1h
# source:
# aws_access_key_id: ((aws_access_key))
# aws_secret_access_key: ((aws_secret_key))
# region: eu-west-1
# filters:
# owner-id: "679593333241"
# is-public: true
# state: available
# name: ubuntu/images/hvm-ssd/ubuntu-bionic-18.04-amd64-server-*
#- name: hipchat-notification
# type: hipchat-notification-resource
# source:
# hipchat_server_url: https://api.hipchat.com
# token: ((hipchat_token.hipchat_token))
# room_id: "4704598"
jobs:
- name: job-packer
serial: true
plan:
- get: packer-example
trigger: true
# - get: ubuntu-bionic-ami
# trigger: true
- task: execute-packer-validate
config:
platform: linux
image_resource:
type: docker-image
source: {repository: hashicorp/packer}
inputs:
- name: packer-example
run:
path: packer
args: ["validate","packer-example/templates/windows-server-2016/aws-win2016-core.json"]
- task: execute-packer-build
config:
platform: linux
image_resource:
type: docker-image
source: {repository: hashicorp/packer}
inputs:
- name: packer-example
run:
path: packer
args: ["build","packer-example/templates/windows-server-2016/aws-win2016-core.json"]
params:
AWS_ACCESS_KEY_ID: ((aws_access_key.aws_access_key))
AWS_SECRET_ACCESS_KEY: ((aws_secret_key.aws_secret_key))
AWS_SESSION_TOKEN: ((aws_session_token.aws_session_token))
AWS_DEFAULT_REGION: "eu-west-1"