-
Notifications
You must be signed in to change notification settings - Fork 0
78 lines (72 loc) · 2.17 KB
/
Copy pathon-push-main.yaml
File metadata and controls
78 lines (72 loc) · 2.17 KB
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
name: on-push-main
on:
push:
branches:
- main
paths:
- ".github/workflows/on-push-main.yaml"
- ".github/workflows/on-version-tagged.yaml"
- ".gitops/**"
- "apis/**"
- "examples/**"
- "functions/**"
- "tests/**"
- "upbound.yaml"
permissions:
packages: write
contents: write
issues: write
pull-requests: write
id-token: write # Required for OIDC auth
jobs:
validate:
uses: unbounded-tech/workflows-crossplane/.github/workflows/validate.yaml@v2.20.0
with:
examples: |
[
{ "example": "examples/dnsstacks/minimal.yaml" },
{ "example": "examples/dnsstacks/standard.yaml" },
{ "example": "examples/dnsstacks/standard.yaml", "observed_resources": "examples/test/mocks/observed-resources/standard/steps/1/" },
{ "example": "examples/dnsstacks/standard.yaml", "observed_resources": "examples/test/mocks/observed-resources/standard/steps/2/" }
]
api_path: apis/dnsstacks
error_on_missing_schemas: true
test:
uses: unbounded-tech/workflows-crossplane/.github/workflows/test.yaml@v2.20.0
e2e:
uses: unbounded-tech/workflows-crossplane/.github/workflows/e2e.yaml@v2.20.0
with:
aws: true
aws-use-oidc: true
aws-account-id: "034489662075"
aws-region: us-east-2
aws-role-duration-seconds: 7200
write-env-files: true
env-vars: |
{
"ADMIN_ROLE_ARN": "${{ vars.ADMIN_ROLE_ARN }}",
"PRIVATE_SUBNET_ID_A": "${{ vars.PRIVATE_SUBNET_ID_A }}",
"PRIVATE_SUBNET_ID_B": "${{ vars.PRIVATE_SUBNET_ID_B }}"
}
debug-resource-types: |
[
"dnsstacks.aws.hops.ops.com.ai"
]
delete-extra-resources: |
[
"autoeksclusters.aws.hops.ops.com.ai"
]
timeout-minutes: 44
cleanup-timeout-minutes: 20
delete-extra-resources-timeout-minutes: 20
version-and-tag:
name: Version and Tag
needs:
- validate
- test
- e2e
uses: unbounded-tech/workflow-vnext-tag/.github/workflows/workflow.yaml@v1.21.5
secrets:
DEPLOY_KEY: ${{ secrets.DEPLOY_KEY }}
with:
useDeployKey: true