Skip to content

Commit f7d3ba3

Browse files
Updated baseline sync files and reusable workflow callers
1 parent 3442c4c commit f7d3ba3

13 files changed

Lines changed: 150 additions & 38 deletions

.dockerignore

Lines changed: 1 addition & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -2,7 +2,6 @@
22
*
33

44
# Include
5+
!Dockerfile
56
!LICENSE
67
!README.md
7-
!show-versions.sh
8-
!pip

.editorconfig

Lines changed: 9 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,9 @@
1+
root = true
2+
3+
[*]
4+
charset = utf-8
5+
end_of_line = lf
6+
insert_final_newline = true
7+
indent_style = space
8+
indent_size = 2
9+
trim_trailing_whitespace = true

.github/workflows/auto-create-pull-request.yml

Lines changed: 1 addition & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -17,5 +17,4 @@ jobs:
1717
uses: devops-infra/.github/.github/workflows/reusable-auto-create-pull-request.yml@v1
1818
with:
1919
profile: dockerized
20-
secrets:
21-
DOCKER_TOKEN: ${{ secrets.DOCKER_TOKEN }}
20+
secrets: inherit

.github/workflows/cron-check-dependencies.yml

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -9,11 +9,11 @@ permissions:
99
contents: read
1010
issues: write
1111
pull-requests: read
12+
packages: write
1213

1314
jobs:
1415
call:
1516
uses: devops-infra/.github/.github/workflows/reusable-cron-check-dependencies.yml@v1
1617
with:
1718
profile: dockerized
18-
secrets:
19-
DOCKER_TOKEN: ${{ secrets.DOCKER_TOKEN }}
19+
secrets: inherit

.github/workflows/manual-sync-common-files.yml

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -24,3 +24,4 @@ jobs:
2424
with:
2525
sync-type: ${{ inputs.type }}
2626
template-profile: dockerized
27+
secrets: inherit

.github/workflows/manual-update-version.yml

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -26,6 +26,7 @@ on:
2626
permissions:
2727
contents: write
2828
packages: write
29+
pull-requests: write
2930

3031
jobs:
3132
call:
@@ -35,5 +36,4 @@ jobs:
3536
explicit-version: ${{ inputs.version }}
3637
build-and-push-only: ${{ inputs.build_only }}
3738
profile: dockerized
38-
secrets:
39-
DOCKER_TOKEN: ${{ secrets.DOCKER_TOKEN }}
39+
secrets: inherit

.gitignore

Lines changed: 7 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,12 @@
11
# Intellij
2-
.idea/
2+
/.idea/
33
*.iml
44

55
# Custom
6+
.DS_Store
67
.tmp/
8+
.venv
9+
.venv/
10+
.envrc
11+
.env
12+
.tmp

.hadolint.yaml

Lines changed: 24 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,24 @@
1+
failure-threshold: error
2+
format: tty
3+
strict-labels: false
4+
no-color: false
5+
no-fail: false
6+
disable-ignore-pragma: false
7+
trustedRegistries:
8+
- docker.io
9+
- ghcr.io
10+
11+
# ignored: [string]
12+
# label-schema:
13+
# author: text
14+
# contact: email
15+
# created: rfc3339
16+
# version: semver
17+
# documentation: url
18+
# git-revision: hash
19+
# license: spdx
20+
# override:
21+
# error: [string]
22+
# warning: [string]
23+
# info: [string]
24+
# style: [string]

.pre-commit-config.yaml

Lines changed: 46 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,46 @@
1+
repos:
2+
- repo: https://github.com/pre-commit/pre-commit-hooks
3+
rev: v6.0.0
4+
hooks:
5+
- id: check-added-large-files
6+
- id: check-case-conflict
7+
- id: check-executables-have-shebangs
8+
- id: check-illegal-windows-names
9+
- id: check-json
10+
- id: check-merge-conflict
11+
- id: check-shebang-scripts-are-executable
12+
- id: check-symlinks
13+
- id: check-xml
14+
- id: check-yaml
15+
- id: destroyed-symlinks
16+
- id: detect-private-key
17+
- id: end-of-file-fixer
18+
- id: mixed-line-ending
19+
args: [--fix=lf]
20+
- id: no-commit-to-branch
21+
args: [--branch, master, --branch, main]
22+
- id: pretty-format-json
23+
args: [--autofix]
24+
- id: trailing-whitespace
25+
- repo: local
26+
hooks:
27+
- id: actionlint
28+
name: actionlint
29+
entry: bash -lc 'docker run --rm -v "$PWD:/work" -w /work rhysd/actionlint:latest -color'
30+
language: system
31+
pass_filenames: false
32+
- id: hadolint
33+
name: hadolint
34+
entry: bash -lc 'docker run --rm -v "$PWD:/work" -w /work hadolint/hadolint:latest-debian "$@"' --
35+
language: system
36+
files: '(^|/)Dockerfile(\..*)?$'
37+
- id: shellcheck
38+
name: shellcheck
39+
entry: bash -lc 'docker run --rm -v "$PWD:/work" -w /work koalaman/shellcheck:stable -x -S style "$@"' --
40+
language: system
41+
files: '\.sh$'
42+
- id: yamllint
43+
name: yamllint
44+
entry: bash -lc 'docker run --rm -v "$PWD:/work" -w /work cytopia/yamllint -c .yamllint.yml "$@"' --
45+
language: system
46+
files: '\.(yml|yaml)$'

.shellcheckrc

Lines changed: 5 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,5 @@
1+
# shellcheck configuration
2+
shell=bash
3+
check-sourced=true
4+
external-sources=true
5+
source-path=SCRIPTDIR

0 commit comments

Comments
 (0)