This repository has been archived by the owner on Nov 27, 2023. It is now read-only.
-
Notifications
You must be signed in to change notification settings - Fork 47
/
.cirrus.yml
90 lines (70 loc) · 2.57 KB
/
.cirrus.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
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
81
82
83
84
85
86
87
88
89
90
---
env:
GOPATH: "/var/tmp/go"
CIRRUS_WORKING_DIR: "${GOPATH}/src/github.com/containers/dnsname"
GOSRC: "$CIRRUS_WORKING_DIR"
CIRRUS_SHELL: "/bin/bash"
IMAGE_PROJECT: "libpod-218412"
HOME: "/root" # not set by default
GOCACHE: "${GOPATH}/cache"
# Make names more readable in github/cirrus-ci
FEDORA_NAME: "fedora-38"
DEBIAN_NAME: "debian-12"
# VM Images are maintained in the automation_images repo.
IMAGE_SUFFIX: "c20230517t144652z-f38f37d12"
FEDORA_CACHE_IMAGE_NAME: "fedora-${IMAGE_SUFFIX}"
DEBIAN_CACHE_IMAGE_NAME: "debian-${IMAGE_SUFFIX}"
# Must be defined true when testing w/in containers
CONTAINER: "false"
gcp_credentials: ENCRYPTED[5ad247acfd6cfca94554b973d61a98a7882dfafbfcc1deb5faee8634cb3f8cf29720c88c243586d2975dd40885279db6]
# Default VM to use unless set or modified by task
gce_instance:
image_project: "${IMAGE_PROJECT}"
zone: "us-central1-c" # Required by Cirrus for the time being
cpu: 2
memory: "4Gb"
disk: 200 # Required for performance reasons
image_name: "${FEDORA_CACHE_IMAGE_NAME}"
# Update metadata on VM images referenced by this repository state
meta_task:
# see bors.toml
skip: $CIRRUS_BRANCH =~ ".*\.tmp"
container:
image: "quay.io/libpod/imgts:latest"
cpu: 1
memory: 1
env:
CONTAINER: true
# Space-separated list of images used by this repository state
IMGNAMES: |-
${FEDORA_CACHE_IMAGE_NAME}
${DEBIAN_CACHE_IMAGE_NAME}
BUILDID: "${CIRRUS_BUILD_ID}"
REPOREF: "${CIRRUS_REPO_NAME}"
GCPJSON: ENCRYPTED[35f6dca7928a3b676c05e0e6a6ce7f4ca3d347803e23b8d5d57ea8a22973248e2808e8726b9463b00b57e576c5ff0331]
GCPNAME: ENCRYPTED[f3890da8c780aaa352ae8d1e3c9fedffd0a233625c1b983e6754e609a92d5c814167ee53ef967896d66c73710c90465e]
GCPPROJECT: ENCRYPTED[e82537cfb95d6121717be1f23078a18b14de224de82ed2f72c0a8f0adc77b5c7e8ad394d10714214bccb9f010d65ac29]
CIRRUS_CLONE_DEPTH: 1 # source not used
script: /usr/local/bin/entrypoint.sh
validate_task:
validate_script:
- export PATH="$PATH:$GOPATH/bin"
- make validate
- make vendor
- ./hack/tree_status.sh
- make
test_task:
alias: test
depends_on:
- validate
matrix:
- name: $FEDORA_NAME
gce_instance:
image_name: ${FEDORA_CACHE_IMAGE_NAME}
- name: $DEBIAN_NAME
gce_instance:
image_name: ${DEBIAN_CACHE_IMAGE_NAME}
test_script:
- export PATH="$PATH:$GOPATH/bin"
- make
- make test