You cannot select more than 25 topics Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.
ccp.runtimes.docker/build.yaml

27 lines
593 B
YAML

- hosts: localhost
tasks:
# Create folder for execution
- name: Create dir
file:
state: directory
path: "/tmp/{{ runtime }}"
# Pull repository
- name: pull repository
git:
repo: "{{ repository }}"
version: "{{ version }}"
dest: "/tmp/{{ runtime }}"
# Packer build
- name: build
command: packer build build.json
args:
chdir: "/tmp/{{ runtime }}"
# Destroy folder for execution
- name: Destroy build folder
file:
state: absent
path: "/tmp/{{ runtime }}"