Skip to content

Commit d65d0f8

Browse files
authored
Ignore default branch (#224)
1 parent c144642 commit d65d0f8

File tree

1 file changed

+105
-97
lines changed

1 file changed

+105
-97
lines changed

.circleci/config.yml

Lines changed: 105 additions & 97 deletions
Original file line numberDiff line numberDiff line change
@@ -6,120 +6,128 @@ jobs:
66
unit-tests:
77
executor: architect/architect
88
steps:
9-
- checkout
10-
- run:
11-
name: "Run unit tests"
12-
command: CGO_ENABLED=0 make test-unit
9+
- checkout
10+
- run:
11+
name: Run unit tests
12+
command: CGO_ENABLED=0 make test-unit
1313
integration-tests:
1414
executor: architect/machine
1515
machine:
16-
image: 'ubuntu-2204:2024.05.1'
16+
image: ubuntu-2204:2024.05.1
1717
steps:
18-
- checkout
19-
- architect/machine-install-go
20-
- run:
21-
name: Install Docker Compose
22-
environment:
23-
COMPOSE_VERSION: '1.29.2'
24-
command: |
25-
curl -L "https://github.com/docker/compose/releases/download/${COMPOSE_VERSION}/docker-compose-$(uname -s)-$(uname -m)" -o ~/docker-compose
26-
chmod +x ~/docker-compose
27-
sudo mv ~/docker-compose /usr/bin/docker-compose
28-
- run:
29-
name: "Run integration tests"
30-
command: |
31-
CGO_ENABLED=0 make test-integration
18+
- checkout
19+
- architect/machine-install-go
20+
- run:
21+
name: Install Docker Compose
22+
environment:
23+
COMPOSE_VERSION: 1.29.2
24+
command: |
25+
curl -L "https://github.com/docker/compose/releases/download/${COMPOSE_VERSION}/docker-compose-$(uname -s)-$(uname -m)" -o ~/docker-compose
26+
chmod +x ~/docker-compose
27+
sudo mv ~/docker-compose /usr/bin/docker-compose
28+
- run:
29+
name: Run integration tests
30+
command: |
31+
CGO_ENABLED=0 make test-integration
3232
acceptance-tests:
3333
executor: architect/machine
3434
machine:
35-
image: 'ubuntu-2204:2024.05.1'
35+
image: ubuntu-2204:2024.05.1
3636
steps:
37-
- checkout
38-
- architect/machine-install-go
39-
- architect/integration-test-install-tools:
40-
apptestctl-version: v0.18.0
41-
helm-version: v3.13.3
42-
kubernetes-version: v1.25.0
43-
- run:
44-
name: "Run acceptance tests"
45-
command: CGO_ENABLED=0 make test-acceptance
37+
- checkout
38+
- architect/machine-install-go
39+
- architect/integration-test-install-tools:
40+
apptestctl-version: v0.18.0
41+
helm-version: v3.13.3
42+
kubernetes-version: v1.25.0
43+
- run:
44+
name: Run acceptance tests
45+
command: CGO_ENABLED=0 make test-acceptance
4646

4747
workflows:
4848
package-and-push-chart-on-tag:
4949
jobs:
50-
- unit-tests:
51-
filters:
52-
tags:
53-
only: /^v.*/
50+
- unit-tests:
51+
filters:
52+
tags:
53+
only: /^v.*/
5454

55-
- hold:
56-
type: approval
57-
requires:
58-
- unit-tests
55+
- hold:
56+
type: approval
57+
requires:
58+
- unit-tests
5959

60-
- integration-tests:
61-
context: architect
62-
requires:
63-
- hold
64-
filters:
65-
tags:
66-
only: /^v.*/
60+
- integration-tests:
61+
context: architect
62+
requires:
63+
- hold
64+
filters:
65+
tags:
66+
only: /^v.*/
6767

68-
- acceptance-tests:
69-
context: architect
70-
requires:
71-
- hold
72-
filters:
73-
tags:
74-
only: /^v.*/
68+
- acceptance-tests:
69+
context: architect
70+
requires:
71+
- hold
72+
filters:
73+
tags:
74+
only: /^v.*/
7575

76-
- architect/go-build:
77-
requires:
78-
- hold
79-
context: architect
80-
name: go-build
81-
binary: aws-resolver-rules-operator
82-
resource_class: xlarge
83-
filters:
84-
tags:
85-
only: /^v.*/
76+
- architect/go-build:
77+
requires:
78+
- hold
79+
context: architect
80+
name: go-build
81+
binary: aws-resolver-rules-operator
82+
resource_class: xlarge
83+
filters:
84+
tags:
85+
only: /^v.*/
8686

87-
- architect/push-to-registries:
88-
context: architect
89-
name: push-to-registries
90-
requires:
91-
- go-build
92-
- unit-tests
93-
- integration-tests
94-
- acceptance-tests
95-
filters:
87+
- architect/push-to-registries:
88+
context: architect
89+
name: push-to-registries
90+
requires:
91+
- go-build
92+
- unit-tests
93+
- integration-tests
94+
- acceptance-tests
95+
filters:
9696
# Trigger the job also on git tag.
97-
tags:
98-
only: /^v.*/
97+
tags:
98+
only: /^v.*/
9999

100-
- architect/push-to-app-catalog:
101-
context: "architect"
102-
executor: "app-build-suite"
103-
name: push-to-app-catalog
104-
app_catalog: "control-plane-catalog"
105-
app_catalog_test: "control-plane-test-catalog"
106-
chart: "aws-resolver-rules-operator"
107-
requires:
108-
- push-to-registries
109-
filters:
110-
tags:
111-
only: /^v.*/
100+
branches:
101+
ignore:
102+
- main
103+
- master
104+
- architect/push-to-app-catalog:
105+
context: architect
106+
executor: app-build-suite
107+
name: push-to-app-catalog
108+
app_catalog: control-plane-catalog
109+
app_catalog_test: control-plane-test-catalog
110+
chart: aws-resolver-rules-operator
111+
requires:
112+
- push-to-registries
113+
filters:
114+
tags:
115+
only: /^v.*/
112116

113-
- architect/push-to-app-collection:
114-
context: architect
115-
name: push-to-capa-app-collection
116-
app_name: "aws-resolver-rules-operator"
117-
app_collection_repo: "capa-app-collection"
118-
requires:
119-
- push-to-app-catalog
120-
- push-to-registries
121-
filters:
122-
branches:
123-
ignore: /.*/
124-
tags:
125-
only: /^v.*/
117+
branches:
118+
ignore:
119+
- main
120+
- master
121+
- architect/push-to-app-collection:
122+
context: architect
123+
name: push-to-capa-app-collection
124+
app_name: aws-resolver-rules-operator
125+
app_collection_repo: capa-app-collection
126+
requires:
127+
- push-to-app-catalog
128+
- push-to-registries
129+
filters:
130+
branches:
131+
ignore: /.*/
132+
tags:
133+
only: /^v.*/

0 commit comments

Comments
 (0)