Skip to content

Commit 7502034

Browse files
authored
feat: Platform v1 (#1)
1 parent fd3500e commit 7502034

File tree

140 files changed

+7370
-674
lines changed

Some content is hidden

Large Commits have some content hidden by default. Use the searchbox below for content that may be hidden.

140 files changed

+7370
-674
lines changed

Diff for: .ansible-lint

+15
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,15 @@
1+
exclude_paths:
2+
- .cache/
3+
- .github/
4+
- node_modules/
5+
- "**/*.sops.yml"
6+
- ".sops.yaml"
7+
8+
use_default_rules: true
9+
10+
skip_list:
11+
- role-name[path]
12+
- name[play]
13+
- yaml[octal-values]
14+
15+
offline: false

Diff for: .gitattributes

+2
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,2 @@
1+
* text=auto,eol=lf
2+
*.* text eol=lf

Diff for: .github/semantic.yml

+11
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,11 @@
1+
titleOnly: true
2+
types:
3+
- feat
4+
- fix
5+
- docs
6+
- refactor
7+
- test
8+
- build
9+
- ci
10+
- chore
11+
- revert

Diff for: .github/workflows/cd.yml

+19
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,19 @@
1+
name: Release
2+
on:
3+
push:
4+
branches:
5+
- master
6+
7+
jobs:
8+
build:
9+
runs-on: ubuntu-latest
10+
permissions:
11+
contents: write # To add version tags
12+
issues: write # Semantic release to link issues
13+
steps:
14+
- uses: actions/checkout@master
15+
16+
- name: Create GitHub release
17+
uses: docker://ghcr.io/codfish/semantic-release-action:v1.9.0
18+
env:
19+
GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }}

Diff for: .github/workflows/ci.yml

+69
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,69 @@
1+
name: CI
2+
on:
3+
pull_request:
4+
5+
jobs:
6+
validate:
7+
runs-on: ubuntu-latest
8+
steps:
9+
- name: Checkout code
10+
uses: actions/checkout@master
11+
12+
- name: Install pre-requisites
13+
run: |
14+
yarn
15+
sudo wget -q -O /usr/bin/sops https://github.com/mozilla/sops/releases/download/v3.7.3/sops-v3.7.3.linux.amd64
16+
sudo chmod a+x /usr/bin/sops
17+
sudo pip install --upgrade pip
18+
sudo pip uninstall -y ansible-core
19+
pip install --force-reinstall ansible==7.6.0
20+
pip install --force-reinstall ansible-lint==6.17.0
21+
22+
- name: Lint Ansible files
23+
run: yarn lint
24+
25+
- name: Compare values across environments
26+
run: yarn validate-values
27+
env:
28+
SOPS_AGE_KEY: ${{ secrets.SOPS_AGE_PRIVATE_KEY }}
29+
30+
deploy-lab:
31+
runs-on: self-hosted
32+
needs:
33+
- validate
34+
steps:
35+
- name: Checkout code
36+
uses: actions/checkout@master
37+
38+
# - name: Write ssh key
39+
# run: |
40+
# echo "${{ secrets.SSH_KEY }}" > ${{ runner.temp }}/ssh.key
41+
# chmod 0600 ${{ runner.temp }}/ssh.key
42+
43+
# - name: Run Ansible playbooks
44+
# run: yarn lab:apply _all -e ansible_user=github-runner --private-key ${{ runner.temp }}/ssh.key
45+
# env:
46+
# SOPS_AGE_KEY: ${{ secrets.SOPS_AGE_PRIVATE_KEY }}
47+
# ANSIBLE_HOST_KEY_CHECKING: "false"
48+
49+
e2e-lab-local:
50+
uses: homecentr/e2e/.github/workflows/run-e2e.yml@feat/v1 # TBA: Switch to master
51+
needs:
52+
- deploy-lab
53+
with:
54+
environment: lab
55+
client: local
56+
gitref: refs/heads/feat/v1 # TBA: Switch to master
57+
secrets:
58+
sops_age_key: ${{ secrets.SOPS_AGE_PRIVATE_KEY }}
59+
60+
e2e-lab-remote:
61+
uses: homecentr/e2e/.github/workflows/run-e2e.yml@feat/v1 # TBA: Switch to master
62+
needs:
63+
- deploy-lab
64+
with:
65+
environment: lab
66+
client: remote
67+
gitref: refs/heads/feat/v1 # TBA: Switch to master
68+
secrets:
69+
sops_age_key: ${{ secrets.SOPS_AGE_PRIVATE_KEY }}

Diff for: .gitignore

+134
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,134 @@
1+
*.key
2+
*.crt
3+
.images
4+
5+
# Logs
6+
logs
7+
*.log
8+
npm-debug.log*
9+
yarn-debug.log*
10+
yarn-error.log*
11+
lerna-debug.log*
12+
.pnpm-debug.log*
13+
14+
# Diagnostic reports (https://nodejs.org/api/report.html)
15+
report.[0-9]*.[0-9]*.[0-9]*.[0-9]*.json
16+
17+
# Runtime data
18+
pids
19+
*.pid
20+
*.seed
21+
*.pid.lock
22+
23+
# Directory for instrumented libs generated by jscoverage/JSCover
24+
lib-cov
25+
26+
# Coverage directory used by tools like istanbul
27+
coverage
28+
*.lcov
29+
30+
# nyc test coverage
31+
.nyc_output
32+
33+
# Grunt intermediate storage (https://gruntjs.com/creating-plugins#storing-task-files)
34+
.grunt
35+
36+
# Bower dependency directory (https://bower.io/)
37+
bower_components
38+
39+
# node-waf configuration
40+
.lock-wscript
41+
42+
# Compiled binary addons (https://nodejs.org/api/addons.html)
43+
build/Release
44+
45+
# Dependency directories
46+
node_modules/
47+
jspm_packages/
48+
49+
# Snowpack dependency directory (https://snowpack.dev/)
50+
web_modules/
51+
52+
# TypeScript cache
53+
*.tsbuildinfo
54+
55+
# Optional npm cache directory
56+
.npm
57+
58+
# Optional eslint cache
59+
.eslintcache
60+
61+
# Optional stylelint cache
62+
.stylelintcache
63+
64+
# Microbundle cache
65+
.rpt2_cache/
66+
.rts2_cache_cjs/
67+
.rts2_cache_es/
68+
.rts2_cache_umd/
69+
70+
# Optional REPL history
71+
.node_repl_history
72+
73+
# Output of 'npm pack'
74+
*.tgz
75+
76+
# Yarn Integrity file
77+
.yarn-integrity
78+
79+
# dotenv environment variable files
80+
.env
81+
.env.development.local
82+
.env.test.local
83+
.env.production.local
84+
.env.local
85+
86+
# parcel-bundler cache (https://parceljs.org/)
87+
.cache
88+
.parcel-cache
89+
90+
# Next.js build output
91+
.next
92+
out
93+
94+
# Nuxt.js build / generate output
95+
.nuxt
96+
dist
97+
98+
# Gatsby files
99+
.cache/
100+
# Comment in the public line in if your project uses Gatsby and not Next.js
101+
# https://nextjs.org/blog/next-9-1#public-directory-support
102+
# public
103+
104+
# vuepress build output
105+
.vuepress/dist
106+
107+
# vuepress v2.x temp and cache directory
108+
.temp
109+
.cache
110+
111+
# Docusaurus cache and generated files
112+
.docusaurus
113+
114+
# Serverless directories
115+
.serverless/
116+
117+
# FuseBox cache
118+
.fusebox/
119+
120+
# DynamoDB Local files
121+
.dynamodb/
122+
123+
# TernJS port file
124+
.tern-port
125+
126+
# Stores VSCode versions used for testing VSCode extensions
127+
.vscode-test
128+
129+
# yarn v2
130+
.yarn/cache
131+
.yarn/unplugged
132+
.yarn/build-state.yml
133+
.yarn/install-state.gz
134+
.pnp.*

Diff for: .sops.yaml

+6
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,6 @@
1+
creation_rules:
2+
- path_regex: ".*environments.*\\.sops\\.ya?ml$"
3+
# Workaround for https://github.com/mozilla/sops/issues/1103 where sops does not currently work correctly with age via YubiKey
4+
pgp: 2D1D9C803F35BBC24014C3906601E1EB2454827F # lholota
5+
age: > # GitHub
6+
age1zw6c356patclh7q8cq5a99cghpzmnufgtwfaa0tmcg87a038d9ms4xpytn

Diff for: .vscode/settings.json

+6
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,6 @@
1+
{
2+
"files.eol": "\n",
3+
"files.exclude": {
4+
"**/node_modules": true
5+
}
6+
}

0 commit comments

Comments
 (0)