Skip to content

Commit 7c9ffc5

Browse files
authored
Merge pull request #1 from stakater/initial-commit
Bootstrapping
2 parents 4fa14c2 + 3eed2da commit 7c9ffc5

62 files changed

Lines changed: 5126 additions & 0 deletions

Some content is hidden

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

.dockerignore

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1 @@
1+
.git*

.github/md_config.json

Lines changed: 7 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,7 @@
1+
{
2+
"ignorePatterns": [
3+
{
4+
"pattern": "^(?!http).+"
5+
}
6+
]
7+
}

.github/workflows/closed_pr.yaml

Lines changed: 12 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,12 @@
1+
name: Closing a pull request
2+
3+
on:
4+
pull_request_target:
5+
types:
6+
- closed
7+
8+
jobs:
9+
push:
10+
uses: stakater/.github/.github/workflows/pull_request_closed.yaml@v0.0.131
11+
secrets:
12+
GH_TOKEN: ${{ secrets.PUBLISH_TOKEN }}
Lines changed: 11 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,11 @@
1+
name: Version deletion
2+
3+
on: delete
4+
5+
jobs:
6+
delete:
7+
uses: stakater/.github/.github/workflows/branch_deleted.yaml@v0.0.131
8+
with:
9+
LATEST_DOC_VERSION: "0.1"
10+
secrets:
11+
GH_TOKEN: ${{ secrets.PUBLISH_TOKEN }}
Lines changed: 63 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,63 @@
1+
name: Pull Request
2+
3+
on:
4+
pull_request:
5+
branches:
6+
- 'main'
7+
- '[0-9]+.[0-9]+'
8+
9+
jobs:
10+
doc_qa:
11+
uses: stakater/.github/.github/workflows/pull_request_doc_qa.yaml@v0.0.131
12+
with:
13+
MD_CONFIG: .github/md_config.json
14+
DOC_SRC: content README.md
15+
MD_LINT_CONFIG: .markdownlint.yaml
16+
deploy_doc:
17+
concurrency:
18+
group: pull_request_versioned_doc
19+
cancel-in-progress: false
20+
uses: stakater/.github/.github/workflows/pull_request_versioned_doc.yaml@v0.0.131
21+
secrets:
22+
GH_TOKEN: ${{ secrets.PUBLISH_TOKEN }}
23+
build_container:
24+
needs: deploy_doc
25+
if: ${{ github.base_ref == 'main' }}
26+
uses: stakater/.github/.github/workflows/pull_request_container_build.yaml@v0.0.131
27+
with:
28+
DOCKER_BUILD_CONTEXTS: content=https://github.com/stakater/template-operator-docs.git#pull-request-deployments
29+
DOCKER_FILE_PATH: Dockerfile
30+
CONTAINER_REGISTRY_URL: ghcr.io/stakater
31+
secrets:
32+
CONTAINER_REGISTRY_USERNAME: ${{ github.actor }}
33+
CONTAINER_REGISTRY_PASSWORD: ${{ secrets.GHCR_TOKEN }}
34+
SLACK_WEBHOOK_URL: ${{ secrets.STAKATER_DELIVERY_SLACK_WEBHOOK }}
35+
DOCKER_SECRETS: GIT_AUTH_TOKEN=${{ secrets.PUBLISH_TOKEN }}
36+
test:
37+
runs-on: ubuntu-latest
38+
needs: [
39+
build_container,
40+
deploy_doc
41+
]
42+
env:
43+
CURRENT_BRANCH: ${{ needs.deploy_doc.outputs.CURRENT_BRANCH }}
44+
IMAGE_PATH: ${{ needs.build_container.outputs.IMAGE_PATH }}
45+
steps:
46+
- name: Checkout repository
47+
uses: actions/checkout@v4
48+
- name: Login to Docker Registry
49+
uses: docker/login-action@v3
50+
with:
51+
registry: ghcr.io/stakater
52+
username: ${{ github.actor }}
53+
password: ${{ secrets.GHCR_TOKEN }}
54+
- name: Run Docker container for the docs
55+
run: |
56+
docker run -d --name template-operator-docs -p 8080:8080 ${{ env.IMAGE_PATH }} || exit 1
57+
- name: Build testcafe tests
58+
working-directory: ./testcafe
59+
run: |
60+
docker build -t testcafe-tests --build-arg CURRENT_BRANCH=${{ env.CURRENT_BRANCH }} .
61+
- name: Run Docker container to run tests
62+
run: |
63+
docker run --rm --network="host" --name myapp-testcafe-container testcafe-tests:latest

.github/workflows/push.yaml

Lines changed: 15 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,15 @@
1+
name: Push
2+
3+
on:
4+
push:
5+
branches:
6+
- 'main'
7+
- '[0-9]+.[0-9]+'
8+
9+
jobs:
10+
push:
11+
uses: stakater/.github/.github/workflows/push_versioned_doc.yaml@v0.0.131
12+
with:
13+
LATEST_DOC_VERSION: "0.1"
14+
secrets:
15+
GH_TOKEN: ${{ secrets.PUBLISH_TOKEN }}

.github/workflows/release.yaml

Lines changed: 24 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,24 @@
1+
name: Release
2+
3+
on:
4+
push:
5+
tags:
6+
- 'v*'
7+
8+
jobs:
9+
create_release:
10+
uses: stakater/.github/.github/workflows/release_template.yaml@v0.0.131
11+
secrets:
12+
SLACK_WEBHOOK_URL: ${{ secrets.STAKATER_DELIVERY_SLACK_WEBHOOK }}
13+
build_container:
14+
uses: stakater/.github/.github/workflows/push_container_only.yaml@v0.0.131
15+
with:
16+
DOCKER_BUILD_CONTEXTS: content=https://github.com/stakater/template-operator-docs.git#gh-pages
17+
DOCKER_FILE_PATH: Dockerfile
18+
secrets:
19+
CONTAINER_REGISTRY_URL: ghcr.io/stakater
20+
CONTAINER_REGISTRY_USERNAME: ${{ github.actor }}
21+
CONTAINER_REGISTRY_PASSWORD: ${{ secrets.GHCR_TOKEN }}
22+
SLACK_WEBHOOK_URL: ${{ secrets.STAKATER_DELIVERY_SLACK_WEBHOOK }}
23+
GH_TOKEN: ${{ secrets.PUBLISH_TOKEN }}
24+
DOCKER_SECRETS: GIT_AUTH_TOKEN=${{ secrets.PUBLISH_TOKEN }}

.gitignore

Lines changed: 31 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,31 @@
1+
# Dist files
2+
dist/
3+
site/
4+
lib/
5+
6+
# Test temp files
7+
**/__fixtures__/.temp/
8+
9+
# Test coverage files
10+
coverage/
11+
12+
# MacOS Desktop Services Store
13+
.DS_Store
14+
15+
# Log files
16+
*.log
17+
18+
# Typescript build info
19+
*.tsbuildinfo
20+
node_modules
21+
22+
# Build files
23+
site/
24+
mkdocs.yml
25+
!theme_override/mkdocs.yml
26+
27+
.idea
28+
styles
29+
30+
my-venv/
31+
test/

.gitmodules

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,3 @@
1+
[submodule "theme_common"]
2+
path = theme_common
3+
url = https://github.com/stakater/stakater-docs-mkdocs-theme.git

.markdownlint.yaml

Lines changed: 6 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,6 @@
1+
MD007:
2+
indent: 4
3+
MD013: false
4+
MD024: false
5+
MD029:
6+
style: one

0 commit comments

Comments
 (0)