summaryrefslogtreecommitdiffstats
path: root/tests/roles/cli/tasks/push.yaml
blob: cc38b51a7a542b482c0a4af511cb6762146a3a39 (plain)
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
---
- name: pull busybox before push
  command: buildah from --pull --name busybox busybox

- name: buildah push image to containers-storage
  command: buildah push docker.io/busybox:latest containers-storage:docker.io/busybox:latest

- name: buildah push image to docker daemon
  command: buildah push docker.io/busybox:latest docker-daemon:docker.io/buildah/busybox:latest

- name: check buildah/busybox exist in docker daemon
  command: docker images docker.io/buildah/busybox:latest

- name: buildah push image to docker local registry
  command: buildah push --tls-verify=false docker.io/busybox:latest docker://localhost:5000/buildah/busybox:latest

- name: create /tmp/buildah/busybox
  file: path=/tmp/buildah/docker state=directory

- name: rm busybox.tar because docker archive does not support modify
  file: path=/tmp/buildah/docker/busybox.tar state=absent

- name: buildah push image to docker-archive
  command: buildah push docker.io/busybox:latest docker-archive:/tmp/buildah/docker/busybox.tar:latest

- name: check docker archive exist
  file: path=/tmp/buildah/docker/busybox.tar state=file

- name: create /tmp/buildah/dir
  file: path=/tmp/buildah/dir state=directory

- name: buildah push image to dir
  command: buildah push docker.io/busybox:latest dir:/tmp/buildah/dir

- name: create /tmp/buildah/oci
  file: path=/tmp/buildah/oci state=directory

- name: buildah push image to oci
  command: buildah push docker.io/busybox:latest oci:/tmp/buildah/oci:latest

- name: buildah push image to oci archive
  command: buildah push docker.io/busybox:latest oci-archive:/tmp/buildah/oci/busybox.tar:latest

- name: check oci archive exist
  file: path=/tmp/buildah/oci/busybox.tar state=file

- name: init default ostree repo
  command: ostree --repo=/ostree/repo init

- name: create /tmp/buildah/ostree/repo
  file: path=/tmp/buildah/ostree/repo state=directory

- name: init tmp ostree repo
  command: ostree --repo=/tmp/buildah/ostree/repo init

- name: buildah push image to ostree
  command: buildah push docker.io/busybox:latest ostree:busybox:latest

- name: buildah push image to non-default ostree repo
  command: buildah push docker.io/busybox:latest ostree:busybox:latest@/tmp/buildah/ostree/repo