-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathbuildpush.yaml
37 lines (36 loc) · 888 Bytes
/
buildpush.yaml
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
---
- hosts: [build]
become: yes
tasks:
- name: Build an image 1 and push it to docker hub
docker_image:
path: ./apps/v1.0.0
name: yeganx/blue
tag: 1.0
state: present
push: yes
ignore_errors: yes
- name: Build an image 2 and push it to docker hub
docker_image:
path: ./apps/v2.0.0
name: yeganx/blue
tag: 2.0
state: build
push: yes
ignore_errors: yes
- name: Build an image 3 and push it to docker hub
docker_image:
path: ./apps/v3.0.0
name: yeganx/blue
tag: 3.0
state: build
push: yes
ignore_errors: yes
- name: Build an image 4 and push it to docker hub
docker_image:
path: ./apps/v4.0.0
name: yeganx/blue
state: build
tag: 4.0
push: yes
ignore_errors: yes