Skip to content

Commit fb423d6

Browse files
Initial commit
0 parents  commit fb423d6

File tree

10 files changed

+530
-0
lines changed

10 files changed

+530
-0
lines changed

.github/CODEOWNERS

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1 @@
1+
* @Flaconi/devops

.github/release-drafter.yml

Lines changed: 24 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,24 @@
1+
# Configuration for Release Drafter: https://github.com/toolmantim/release-drafter
2+
name-template: 'v$NEXT_MINOR_VERSION 🌈'
3+
tag-template: 'v$NEXT_MINOR_VERSION'
4+
categories:
5+
- title: '🚀 Features'
6+
labels:
7+
- feature
8+
- enhancement
9+
- title: '🐛 Bug Fixes'
10+
labels:
11+
- fix
12+
- bugfix
13+
- bug
14+
- title: '🧰 Maintenance'
15+
labels:
16+
- chore
17+
- dependencies
18+
change-template: '- $TITLE @$AUTHOR (#$NUMBER)'
19+
branches:
20+
- master
21+
template: |
22+
## What's Changed
23+
24+
$CHANGES

.github/workflows/lint.yml

Lines changed: 62 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,62 @@
1+
---
2+
3+
# -------------------------------------------------------------------------------------------------
4+
# Job Name
5+
# -------------------------------------------------------------------------------------------------
6+
name: lint
7+
8+
9+
# -------------------------------------------------------------------------------------------------
10+
# When to run
11+
# -------------------------------------------------------------------------------------------------
12+
on:
13+
# Runs on Pull Requests
14+
pull_request:
15+
16+
17+
# -------------------------------------------------------------------------------------------------
18+
# What to run
19+
# -------------------------------------------------------------------------------------------------
20+
jobs:
21+
lint:
22+
name: "Lint"
23+
runs-on: ubuntu-latest
24+
strategy:
25+
fail-fast: False
26+
matrix:
27+
target:
28+
- lint
29+
- gen
30+
31+
steps:
32+
# ------------------------------------------------------------
33+
# Setup repository
34+
# ------------------------------------------------------------
35+
- name: Checkout repository
36+
uses: actions/checkout@v2
37+
with:
38+
fetch-depth: 0
39+
40+
# ------------------------------------------------------------
41+
# Lint repository
42+
# ------------------------------------------------------------
43+
- name: "make ${{ matrix.target }}"
44+
run: |
45+
retry() {
46+
for n in $(seq ${RETRIES}); do
47+
echo "[${n}/${RETRIES}] ${*}";
48+
if eval "${*}"; then
49+
echo "[SUCC] ${n}/${RETRIES}";
50+
return 0;
51+
fi;
52+
sleep 2;
53+
echo "[FAIL] ${n}/${RETRIES}";
54+
done;
55+
return 1;
56+
}
57+
58+
retry make "${TARGET}"
59+
git diff --quiet || { echo "Build Changes"; git diff; git status; false; }
60+
env:
61+
TARGET: ${{ matrix.target }}
62+
RETRIES: 20
Lines changed: 15 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,15 @@
1+
name: Release Drafter
2+
3+
on:
4+
push:
5+
# branches to consider in the event; optional, defaults to all
6+
branches:
7+
- master
8+
9+
jobs:
10+
update_release_draft:
11+
runs-on: ubuntu-latest
12+
steps:
13+
- uses: release-drafter/release-drafter@v5
14+
env:
15+
GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }}

.github/workflows/test.yml

Lines changed: 50 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,50 @@
1+
---
2+
3+
# -------------------------------------------------------------------------------------------------
4+
# Job Name
5+
# -------------------------------------------------------------------------------------------------
6+
name: test
7+
8+
9+
# -------------------------------------------------------------------------------------------------
10+
# When to run
11+
# -------------------------------------------------------------------------------------------------
12+
on:
13+
# Runs on Pull Requests
14+
pull_request:
15+
16+
17+
# -------------------------------------------------------------------------------------------------
18+
# What to run
19+
# -------------------------------------------------------------------------------------------------
20+
jobs:
21+
test:
22+
name: Test
23+
runs-on: ubuntu-latest
24+
steps:
25+
26+
# ------------------------------------------------------------
27+
# Checkout repository
28+
# ------------------------------------------------------------
29+
- name: Checkout repository
30+
uses: actions/checkout@v2
31+
with:
32+
fetch-depth: 0
33+
34+
- name: Test
35+
run: |
36+
retry() {
37+
for n in $(seq ${RETRIES}); do
38+
echo "[${n}/${RETRIES}] ${*}";
39+
if eval "${*}"; then
40+
echo "[SUCC] ${n}/${RETRIES}";
41+
return 0;
42+
fi;
43+
sleep 2;
44+
echo "[FAIL] ${n}/${RETRIES}";
45+
done;
46+
return 1;
47+
}
48+
retry make test
49+
env:
50+
RETRIES: 20

.gitignore

Lines changed: 22 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,22 @@
1+
# Local .terraform directories
2+
**/.terraform/*
3+
4+
# .tfstate files
5+
*.tfstate
6+
*.tfstate.*
7+
8+
# Crash log files
9+
crash.log
10+
11+
# Ignore override files as they are usually used to override resources locally and so
12+
# are not checked in
13+
override.tf
14+
override.tf.json
15+
*_override.tf
16+
*_override.tf.json
17+
18+
# Lock file
19+
.terraform.lock.hcl
20+
21+
# Vars file
22+
/*.tfvars

LICENSE

Lines changed: 21 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,21 @@
1+
MIT License
2+
3+
Copyright (c) 2021 Flaconi GmbH
4+
5+
Permission is hereby granted, free of charge, to any person obtaining a copy
6+
of this software and associated documentation files (the "Software"), to deal
7+
in the Software without restriction, including without limitation the rights
8+
to use, copy, modify, merge, publish, distribute, sublicense, and/or sell
9+
copies of the Software, and to permit persons to whom the Software is
10+
furnished to do so, subject to the following conditions:
11+
12+
The above copyright notice and this permission notice shall be included in all
13+
copies or substantial portions of the Software.
14+
15+
THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR
16+
IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY,
17+
FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE
18+
AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER
19+
LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM,
20+
OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE
21+
SOFTWARE.

0 commit comments

Comments
 (0)