Browse Source

chore: synced file(s) with dgibbs64/repo-sync (#78)

* chore: synced local '.github/' with remote 'general/.github/'

* chore: synced local './' with remote 'docker/'
pull/79/head
Daniel Gibbs 4 weeks ago
committed by GitHub
parent
commit
763dbcadbe
No known key found for this signature in database GPG Key ID: B5690EEEBB952194
  1. 29
      .devcontainer/devcontainer.json
  2. 17
      .editorconfig
  3. 14
      .github/FUNDING.yml
  4. 7
      .github/dependabot.yml
  5. 28
      .github/workflows/action-dockerhub-description.yml
  6. 27
      .github/workflows/action-update-copyright-years-in-license-file.yml
  7. 3
      .gitignore
  8. 2
      .prettierrc.json
  9. 3
      .vscode/extensions.json

29
.devcontainer/devcontainer.json

@ -0,0 +1,29 @@
{
"name": "Docker Dev Container",
"image": "mcr.microsoft.com/devcontainers/base:ubuntu",
"features": {
"ghcr.io/devcontainers-community/npm-features/prettier:1": {},
"ghcr.io/devcontainers-extra/features/actionlint:1": {},
"ghcr.io/devcontainers-extra/features/checkov:1": {},
"ghcr.io/devcontainers-extra/features/markdownlint-cli:1": {},
"ghcr.io/devcontainers-extra/features/shellcheck:1": {},
"ghcr.io/devcontainers-extra/features/yamllint:2": {},
"ghcr.io/devcontainers/features/docker-outside-of-docker:1": {},
"ghcr.io/devcontainers/features/github-cli:1": {}
},
"customizations": {
"vscode": {
"extensions": [
"DavidAnson.vscode-markdownlint",
"editorconfig.editorconfig",
"esbenp.prettier-vscode",
"github.vscode-github-actions",
"GitHub.vscode-pull-request-github",
"ms-azuretools.vscode-containers",
"redhat.vscode-yaml",
"yzhang.markdown-all-in-one"
]
}
},
"postCreateCommand": "npm init -y >/dev/null 2>&1 || true && npm install --no-save prettier prettier-plugin-sh prettier-plugin-jinja-template"
}

17
.editorconfig

@ -5,22 +5,13 @@ root = true
[*]
charset = utf-8
indent_style = space
indent_size = 2
trim_trailing_whitespace = true
end_of_line = lf
insert_final_newline = true
# YAML Files
[*.{yml,yaml}]
indent_size = 2
# JSON Files
[*.{json,json5,webmanifest}]
indent_size = 2
indent_style = space
insert_final_newline = true
trim_trailing_whitespace = true
# BASH Files
[*.{.sh}]
indent_style = tab
indent_size = 4
indent_style = tab

14
.github/FUNDING.yml

@ -1,12 +1,2 @@
# These are supported funding model platforms
github: dgibbs64 # Replace with up to 4 GitHub Sponsors-enabled usernames e.g., [user1, user2]
patreon: dgibbs # Replace with a single Patreon username
open_collective: # Replace with a single Open Collective username
ko_fi: # Replace with a single Ko-fi username
tidelift: # Replace with a single Tidelift platform-name/package-name e.g., npm/babel
community_bridge: # Replace with a single Community Bridge project-name e.g., cloud-foundry
liberapay: # Replace with a single Liberapay username
issuehunt: # Replace with a single IssueHunt username
otechie: # Replace with a single Otechie username
custom: # Replace with a single custom sponsorship URL
github: dgibbs64
patreon: dgibbs

7
.github/dependabot.yml

@ -1,9 +1,12 @@
# Set update schedule for GitHub Actions
---
version: 2
updates:
- package-ecosystem: "github-actions"
directory: "/"
schedule:
# Check for updates to GitHub Actions every weekday
interval: "weekly"
- package-ecosystem: "devcontainers"
directory: "/"
schedule:
interval: weekly

28
.github/workflows/action-dockerhub-description.yml

@ -0,0 +1,28 @@
name: Update Docker Hub Description
on:
workflow_dispatch:
push:
paths:
- README.md
- .github/workflows/dockerhub-description.yml
branches:
- main
permissions:
contents: read
jobs:
dockerhub-description:
name: Docker Hub Description
runs-on: ubuntu-latest
steps:
- name: Checkout
uses: actions/checkout@v5
- name: Docker Hub Description
uses: peter-evans/dockerhub-description@v4
with:
username: ${{ secrets.DOCKER_HUB_USERNAME }}
password: ${{ secrets.DOCKER_HUB_ACCESS_TOKEN }}
repository: ${{ secrets.DOCKER_HUB_REPO }}
short-description: ${{ github.event.repository.description }}

27
.github/workflows/action-update-copyright-years-in-license-file.yml

@ -0,0 +1,27 @@
name: Update copyright year(s) in license file
on:
workflow_dispatch:
schedule:
- cron: "0 3 1 1 *" # 03:00 AM on January 1
permissions:
contents: write
jobs:
update-license-year:
runs-on: ubuntu-latest
steps:
- name: Checkout
uses: actions/checkout@v5
with:
fetch-depth: 0
- name: Action Update License Year
uses: FantasticFiasco/action-update-license-year@v3
with:
token: ${{ secrets.GITHUB_TOKEN }}
path: LICENSE.md
- name: Merge pull request
env:
GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }}
run: |
gh pr merge --merge --delete-branch

3
.gitignore

@ -7,3 +7,6 @@
!.vscode/*.code-snippets
.history/
*.vsix
# Node.js
node_modules

2
.prettierrc.json

@ -1,3 +1,3 @@
{
"plugins": ["prettier-plugin-sh"]
"plugins": ["prettier-plugin-sh", "prettier-plugin-jinja-template"]
}

3
.vscode/extensions.json

@ -1,6 +1,7 @@
{
"recommendations": [
"editorconfig.editorconfig",
"esbenp.prettier-vscode"
"esbenp.prettier-vscode",
"github.vscode-github-actions"
]
}

Loading…
Cancel
Save