-
Notifications
You must be signed in to change notification settings - Fork 139
/
kubemacpool-postsubmits.yaml
80 lines (80 loc) · 2.89 KB
/
kubemacpool-postsubmits.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
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
79
80
postsubmits:
k8snetworkplumbingwg/kubemacpool:
- name: main-kubemacpool
annotations:
testgrid-create-test-group: "false"
decorate: true
max_concurrency: 1
labels:
preset-podman-in-container-enabled: "true"
preset-docker-mirror-proxy: "true"
preset-kubevirtci-quay-credential: "true"
branches:
- main
cluster: kubevirt-prow-workloads
spec:
containers:
- image: quay.io/kubevirtci/bootstrap:v20241213-57bd934
command:
- "/usr/local/bin/runner.sh"
- "/bin/bash"
- "-c"
- "cat $QUAY_PASSWORD | docker login --username $(cat $QUAY_USER) --password-stdin=true quay.io && make container docker-push"
# docker-in-docker needs privileged mode
securityContext:
privileged: true
- name: stable-branch-kubemacpool
annotations:
testgrid-create-test-group: "false"
decorate: true
max_concurrency: 1
labels:
preset-podman-in-container-enabled: "true"
preset-docker-mirror-proxy: "true"
preset-kubevirtci-quay-credential: "true"
branches:
- ^release-\d+\.\d+$
cluster: kubevirt-prow-workloads
spec:
containers:
- image: quay.io/kubevirtci/bootstrap:v20241213-57bd934
command:
- "/usr/local/bin/runner.sh"
- "/bin/bash"
- "-c"
- |
cat $QUAY_PASSWORD | docker login --username $(cat $QUAY_USER) --password-stdin=true quay.io &&
BRANCH_NAME=$(git rev-parse --abbrev-ref HEAD)
[ "$BRANCH_NAME" != "HEAD" ] &&
make container docker-push IMAGE_TAG=${BRANCH_NAME}_latest
# docker-in-docker needs privileged mode
securityContext:
privileged: true
- name: release-kubemacpool
annotations:
testgrid-create-test-group: "false"
decorate: true
max_concurrency: 1
labels:
preset-podman-in-container-enabled: "true"
preset-docker-mirror-proxy: "true"
preset-kubevirtci-quay-credential: "true"
branches:
- ^v\d+\.\d+\.\d+$
cluster: kubevirt-prow-workloads
spec:
containers:
- image: quay.io/kubevirtci/bootstrap:v20241213-57bd934
command:
- "/usr/local/bin/runner.sh"
- "/bin/bash"
- "-c"
- |
cat $QUAY_PASSWORD | docker login --username $(cat $QUAY_USER) --password-stdin=true quay.io &&
# Only push images on tags
COMMIT_TAG=$(git tag --points-at HEAD | tail -1)
[ -z "$COMMIT_TAG" ] ||
make container docker-push IMAGE_TAG=$COMMIT_TAG
# docker-in-docker needs privileged mode
securityContext:
privileged: true