-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathinstall-package.yml
50 lines (39 loc) · 2.25 KB
/
install-package.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
---
- name: Create TSSC Install Package
gather_facts: false
hosts: 127.0.0.1
vars:
package_dir: "{{ playbook_dir }}/package"
image_dir: "{{ package_dir }}/container-images"
image_tag: v0.12.0
tasks:
- name: Confirm Required Variables are Set
fail:
msg: "'{{ item }}' is unset. Did you mean to pass it to the command with -e?"
when: item not in vars
with_items:
- target_registry
- name: Upload Jenkins Worker Container Images - Jenkins Agent
shell:
cmd: skopeo copy oci://{{ image_dir }}/tssc-ci-agent-jenkins:{{ image_tag }} docker://{{ target_registry }}/tssc/tssc-ci-agent-jenkins:{{ image_tag }}
- name: Upload Jenkins Worker Container Images - Jenkins Agent
shell:
cmd: skopeo copy oci://{{ image_dir }}/tssc-tool-maven:{{ image_tag }} docker://{{ target_registry }}/tssc/tssc-tool-maven:{{ image_tag }}
- name: Upload Jenkins Worker Container Images - Jenkins Agent
shell:
cmd: skopeo copy oci://{{ image_dir }}/tssc-tool-buildah:{{ image_tag }} docker://{{ target_registry }}/tssc/tssc-tool-buildah:{{ image_tag }}
- name: Upload Jenkins Worker Container Images - Jenkins Agent
shell:
cmd: skopeo copy oci://{{ image_dir }}/tssc-tool-argocd:{{ image_tag }} docker://{{ target_registry }}/tssc/tssc-tool-argocd:{{ image_tag }}
- name: Upload Jenkins Worker Container Images - Jenkins Agent
shell:
cmd: skopeo copy oci://{{ image_dir }}/tssc-tool-skopeo:{{ image_tag }} docker://{{ target_registry }}/tssc/tssc-tool-skopeo:{{ image_tag }}
- name: Upload Jenkins Worker Container Images - Jenkins Agent
shell:
cmd: skopeo copy oci://{{ image_dir }}/tssc-tool-sonar:{{ image_tag }} docker://{{ target_registry }}/tssc/tssc-tool-sonar:{{ image_tag }}
- name: Upload Jenkins Worker Container Images - Jenkins Agent
shell:
cmd: skopeo copy oci://{{ image_dir }}/tssc-tool-config-lint:{{ image_tag }} docker://{{ target_registry }}/tssc/tssc-tool-config-lint:{{ image_tag }}
- name: Upload Jenkins Worker Container Images - Jenkins Agent
shell:
cmd: skopeo copy oci://{{ image_dir }}/tssc-tool-openscap:{{ image_tag }} docker://{{ target_registry }}/tssc/tssc-tool-openscap:{{ image_tag }}