-
Notifications
You must be signed in to change notification settings - Fork 0
75 lines (69 loc) · 2.91 KB
/
Copy pathon-push-main.yaml
File metadata and controls
75 lines (69 loc) · 2.91 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
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:
id-token: write
packages: write
contents: write
issues: write
pull-requests: write
jobs:
validate:
uses: unbounded-tech/workflows-crossplane/.github/workflows/validate.yaml@v3.0.0
with:
examples: |
[
{ "example": "examples/organizations/individual.yaml" },
{ "example": "examples/organizations/individual.yaml", "observed_resources": "examples/test/mocks/observed-resources/individual/steps/1" },
{ "example": "examples/organizations/import-existing.yaml" },
{ "example": "examples/organizations/import-existing.yaml", "observed_resources": "examples/test/mocks/observed-resources/import-existing/steps/1" },
{ "example": "examples/organizations/enterprise.yaml" },
{ "example": "examples/organizations/enterprise.yaml", "observed_resources": "examples/test/mocks/observed-resources/enterprise/steps/1" },
{ "example": "examples/organizations/enterprise.yaml", "observed_resources": "examples/test/mocks/observed-resources/enterprise/steps/2" },
{ "example": "examples/organizations/enterprise-override.yaml" },
{ "example": "examples/organizations/e2e-with-infrastructure.yaml" },
{ "example": "examples/organizations/e2e-with-infrastructure.yaml", "observed_resources": "examples/test/mocks/observed-resources/e2e-with-infrastructure/steps/1" },
{ "example": "examples/organizations/e2e-with-infrastructure.yaml", "observed_resources": "examples/test/mocks/observed-resources/e2e-with-infrastructure/steps/2" },
{ "example": "examples/organizations/e2e-with-infrastructure.yaml", "observed_resources": "examples/test/mocks/observed-resources/e2e-with-infrastructure/steps/3" }
]
api_path: apis/organizations
error_on_missing_schemas: true
test:
uses: unbounded-tech/workflows-crossplane/.github/workflows/test.yaml@v3.0.0
e2e:
uses: unbounded-tech/workflows-crossplane/.github/workflows/e2e.yaml@v3.0.0
with:
aws: true
aws-use-oidc: true
aws-account-id: "034489662075"
aws-region: us-east-2
timeout-minutes: 30
write-env-files: true
env-vars: |
{
"ORG_ID": "${{ vars.ORG_ID }}",
"TEST_OU_EXTERNAL_NAME": "${{ vars.TEST_OU_EXTERNAL_NAME }}",
"TEST_ACCOUNT_EXTERNAL_NAME": "${{ vars.TEST_ACCOUNT_EXTERNAL_NAME }}"
}
version-and-tag:
name: Version and Tag
needs:
- validate
- test
- e2e
uses: unbounded-tech/workflow-vnext-tag/.github/workflows/workflow.yaml@v1.21.0
secrets:
DEPLOY_KEY: ${{ secrets.DEPLOY_KEY }}
with:
useDeployKey: true