mirror of
https://github.com/ivuorinen/dotfiles.git
synced 2026-02-05 10:48:59 +00:00
Compare commits
7 Commits
| Author | SHA1 | Date | |
|---|---|---|---|
|
|
94e58b307b | ||
| 98aca096a9 | |||
| 121e31c7d4 | |||
| f6bcd10ac5 | |||
| 619c772fcc | |||
| 746d44151c | |||
| b9585209be |
11
.github/workflows/new-release.yml
vendored
11
.github/workflows/new-release.yml
vendored
@@ -1,9 +1,9 @@
|
|||||||
---
|
---
|
||||||
name: Release Daily State # Workflow name displayed on GitHub
|
name: Release Daily State
|
||||||
on:
|
on:
|
||||||
workflow_dispatch: # Trigger manually
|
workflow_dispatch:
|
||||||
schedule:
|
schedule:
|
||||||
- cron: '30 20 * * *' # UTC is 2-3 hours behind Europe/Helsinki, my timezone
|
- cron: '0 21 * * *' # 00:00 at Europe/Helsinki
|
||||||
jobs:
|
jobs:
|
||||||
new-daily-release:
|
new-daily-release:
|
||||||
runs-on: self-hosted
|
runs-on: self-hosted
|
||||||
@@ -13,10 +13,12 @@ jobs:
|
|||||||
created: ${{ steps.daily-version.outputs.created }}
|
created: ${{ steps.daily-version.outputs.created }}
|
||||||
version: ${{ steps.daily-version.outputs.version }}
|
version: ${{ steps.daily-version.outputs.version }}
|
||||||
steps:
|
steps:
|
||||||
- uses: actions/checkout@v4 # Checkout our working repository
|
- uses: actions/checkout@v4
|
||||||
|
|
||||||
- name: Create tag if necessary
|
- name: Create tag if necessary
|
||||||
uses: fregante/daily-version-action@v2
|
uses: fregante/daily-version-action@v2
|
||||||
id: daily-version
|
id: daily-version
|
||||||
|
|
||||||
- name: Create changelog text
|
- name: Create changelog text
|
||||||
if: steps.daily-version.outputs.created
|
if: steps.daily-version.outputs.created
|
||||||
id: changelog
|
id: changelog
|
||||||
@@ -24,6 +26,7 @@ jobs:
|
|||||||
with:
|
with:
|
||||||
token: ${{ secrets.GITHUB_TOKEN }}
|
token: ${{ secrets.GITHUB_TOKEN }}
|
||||||
config_file: .github/tag-changelog-config.js
|
config_file: .github/tag-changelog-config.js
|
||||||
|
|
||||||
- name: Create release
|
- name: Create release
|
||||||
if: steps.daily-version.outputs.created
|
if: steps.daily-version.outputs.created
|
||||||
uses: actions/create-release@latest
|
uses: actions/create-release@latest
|
||||||
|
|||||||
50
.pre-commit-config.yaml
Normal file
50
.pre-commit-config.yaml
Normal file
@@ -0,0 +1,50 @@
|
|||||||
|
repos:
|
||||||
|
- repo: https://github.com/pre-commit/pre-commit-hooks
|
||||||
|
rev: v4.6.0
|
||||||
|
hooks:
|
||||||
|
- id: trailing-whitespace
|
||||||
|
args: [--markdown-linebreak-ext=md]
|
||||||
|
- id: check-case-conflict
|
||||||
|
- id: check-merge-conflict
|
||||||
|
- id: check-shebang-scripts-are-executable
|
||||||
|
- id: check-symlinks
|
||||||
|
- id: check-toml
|
||||||
|
- id: check-xml
|
||||||
|
- id: check-yaml
|
||||||
|
args: [--allow-multiple-documents]
|
||||||
|
- id: end-of-file-fixer
|
||||||
|
- id: mixed-line-ending
|
||||||
|
args: [--fix=auto]
|
||||||
|
- id: pretty-format-json
|
||||||
|
args: [--autofix, --no-sort-keys]
|
||||||
|
|
||||||
|
- repo: https://github.com/igorshubovych/markdownlint-cli
|
||||||
|
rev: v0.41.0
|
||||||
|
hooks:
|
||||||
|
- id: markdownlint
|
||||||
|
args: [-c, .markdownlint.yaml, --fix]
|
||||||
|
|
||||||
|
- repo: https://github.com/adrienverge/yamllint
|
||||||
|
rev: v1.35.1
|
||||||
|
hooks:
|
||||||
|
- id: yamllint
|
||||||
|
|
||||||
|
- repo: https://github.com/pre-commit/mirrors-prettier
|
||||||
|
rev: v4.0.0-alpha.8
|
||||||
|
hooks:
|
||||||
|
- id: prettier
|
||||||
|
|
||||||
|
- repo: https://github.com/shellcheck-py/shellcheck-py
|
||||||
|
rev: v0.10.0.1
|
||||||
|
hooks:
|
||||||
|
- id: shellcheck
|
||||||
|
|
||||||
|
- repo: https://github.com/scop/pre-commit-shfmt
|
||||||
|
rev: v3.9.0-1
|
||||||
|
hooks:
|
||||||
|
- id: shfmt
|
||||||
|
|
||||||
|
- repo: https://github.com/rhysd/actionlint
|
||||||
|
rev: v1.7.1
|
||||||
|
hooks:
|
||||||
|
- id: actionlint
|
||||||
@@ -1,5 +1,4 @@
|
|||||||
module.exports = {
|
module.exports = {
|
||||||
plugins: ['prettier-plugin-sh'],
|
|
||||||
...require('@ivuorinen/prettier-config'),
|
...require('@ivuorinen/prettier-config'),
|
||||||
trailingComma: 'all',
|
trailingComma: 'all',
|
||||||
// Add custom options below:
|
// Add custom options below:
|
||||||
|
|||||||
0
.yamlignore
Normal file
0
.yamlignore
Normal file
@@ -1,5 +1,7 @@
|
|||||||
[global]
|
[global]
|
||||||
disable_stdin = true
|
disable_stdin = true
|
||||||
|
load_dotenv = true
|
||||||
|
hide_env_diff = true
|
||||||
|
|
||||||
[whitelist]
|
[whitelist]
|
||||||
prefix = [
|
prefix = [
|
||||||
|
|||||||
@@ -270,6 +270,7 @@ export BASH_COMPLETION_USER_FILE="${XDG_CONFIG_HOME}/bash-completion/bash_comple
|
|||||||
|
|
||||||
# History env variables
|
# History env variables
|
||||||
export HIST_STAMPS="yyyy-mm-dd"
|
export HIST_STAMPS="yyyy-mm-dd"
|
||||||
|
export HISTFILE="${XDG_STATE_HOME}/zsh/history"
|
||||||
# Larger bash history (allow 32³ entries; default is 500)
|
# Larger bash history (allow 32³ entries; default is 500)
|
||||||
export HISTSIZE=32768
|
export HISTSIZE=32768
|
||||||
export HISTFILESIZE=$HISTSIZE
|
export HISTFILESIZE=$HISTSIZE
|
||||||
@@ -328,6 +329,7 @@ export ASDF_CONFIG_FILE="${XDG_CONFIG_HOME}/asdf/asdfrc"
|
|||||||
export ASDF_DATA_DIR="${ASDF_DIR}"
|
export ASDF_DATA_DIR="${ASDF_DIR}"
|
||||||
export ASDF_PLUGIN_MANAGER_PLUGIN_VERSIONS_FILENAME="${XDG_CONFIG_HOME}/asdf/plugin-versions"
|
export ASDF_PLUGIN_MANAGER_PLUGIN_VERSIONS_FILENAME="${XDG_CONFIG_HOME}/asdf/plugin-versions"
|
||||||
export ASDF_LOG_FILE="${XDG_CACHE_HOME}/asdf/asdf.log"
|
export ASDF_LOG_FILE="${XDG_CACHE_HOME}/asdf/asdf.log"
|
||||||
|
export ASDF_FORCE_PREPEND=yes
|
||||||
## Default package files
|
## Default package files
|
||||||
export ASDF_CRATE_DEFAULT_PACKAGES_FILE="${XDG_CONFIG_HOME}/asdf/cargo-packages"
|
export ASDF_CRATE_DEFAULT_PACKAGES_FILE="${XDG_CONFIG_HOME}/asdf/cargo-packages"
|
||||||
export ASDF_GEM_DEFAULT_PACKAGES_FILE="${XDG_CONFIG_HOME}/asdf/gem-packages"
|
export ASDF_GEM_DEFAULT_PACKAGES_FILE="${XDG_CONFIG_HOME}/asdf/gem-packages"
|
||||||
@@ -341,6 +343,23 @@ export ASDF_NODEJS_LEGACY_FILE_DYNAMIC_STRATEGY="latest_available"
|
|||||||
## Add asdf to path
|
## Add asdf to path
|
||||||
export PATH="${ASDF_DIR}/bin:${PATH}"
|
export PATH="${ASDF_DIR}/bin:${PATH}"
|
||||||
|
|
||||||
|
# aws
|
||||||
|
# https://docs.aws.amazon.com/cli/latest/userguide/cli-configure-files.html
|
||||||
|
# https://docs.aws.amazon.com/cli/latest/userguide/cli-configure-envvars.html
|
||||||
|
# https://docs.aws.amazon.com/cli/latest/userguide/cli-configure-profiles.html
|
||||||
|
msg "Setting up AWS configuration"
|
||||||
|
export AWS_CONFIG_FILE="${XDG_STATE_HOME}/aws/config"
|
||||||
|
export AWS_SHARED_CREDENTIALS_FILE="${XDG_STATE_HOME}/aws/credentials"
|
||||||
|
export AWS_DATA_PATH="${XDG_DATA_HOME}/aws"
|
||||||
|
export AWS_DEFAULT_REGION="eu-west-1"
|
||||||
|
export AWS_DEFAULT_OUTPUT="table"
|
||||||
|
export AWS_CONFIGURE_KEYS=true
|
||||||
|
export AWS_CONFIGURE_REGION=true
|
||||||
|
export AWS_CONFIGURE_OUTPUT=true
|
||||||
|
export AWS_CONFIGURE_PROFILE=true
|
||||||
|
export AWS_CONFIGURE_PROMPT=true
|
||||||
|
export AWS_CONFIGURE_PROMPT_DEFAULT="default"
|
||||||
|
|
||||||
# bob manages nvim versions
|
# bob manages nvim versions
|
||||||
msg "Setting up bob configuration"
|
msg "Setting up bob configuration"
|
||||||
x-path-prepend "$XDG_DATA_HOME/bob/nvim-bin"
|
x-path-prepend "$XDG_DATA_HOME/bob/nvim-bin"
|
||||||
@@ -370,11 +389,12 @@ export PATH="$COMPOSER_BIN:$PATH"
|
|||||||
# direnv, https://direnv.net/
|
# direnv, https://direnv.net/
|
||||||
# https://direnv.net/docs/hook.html
|
# https://direnv.net/docs/hook.html
|
||||||
# Set the hook to show the direnv message in a different color
|
# Set the hook to show the direnv message in a different color
|
||||||
export DIRENV_LOG_FORMAT=$'\033[2mdirenv: %s\033[0m'
|
# export DIRENV_LOG_FORMAT=$'\033[2mdirenv: %s\033[0m'
|
||||||
|
export DIRENV_LOG_FORMAT=
|
||||||
|
|
||||||
# docker, https://docs.docker.com/engine/reference/commandline/cli/
|
# docker, https://docs.docker.com/engine/reference/commandline/cli/
|
||||||
msg "Setting up Docker configuration"
|
msg "Setting up Docker configuration"
|
||||||
export DOCKER_CONFIG="$XDG_CONFIG_HOME/docker"
|
export DOCKER_CONFIG="${XDG_CONFIG_HOME}/docker"
|
||||||
x-dc "$DOCKER_CONFIG"
|
x-dc "$DOCKER_CONFIG"
|
||||||
# Docker: Disable snyk ad
|
# Docker: Disable snyk ad
|
||||||
export DOCKER_SCAN_SUGGEST=false
|
export DOCKER_SCAN_SUGGEST=false
|
||||||
@@ -388,7 +408,7 @@ x-have ffmpeg && x-dc "$FFMPEG_DATADIR"
|
|||||||
# GnuPG
|
# GnuPG
|
||||||
# https://gnupg.org/documentation/manuals/gnupg/Invoking-GPG.html
|
# https://gnupg.org/documentation/manuals/gnupg/Invoking-GPG.html
|
||||||
msg "Setting up GnuPG configuration"
|
msg "Setting up GnuPG configuration"
|
||||||
export GNUPGHOME="$XDG_DATA_HOME/gnupg"
|
export GNUPGHOME="${XDG_DATA_HOME}/gnupg"
|
||||||
|
|
||||||
# Go
|
# Go
|
||||||
# https://golang.org/doc/code.html
|
# https://golang.org/doc/code.html
|
||||||
|
|||||||
@@ -53,6 +53,7 @@
|
|||||||
mode: 0600
|
mode: 0600
|
||||||
path: ssh/*
|
path: ssh/*
|
||||||
- shell:
|
- shell:
|
||||||
|
- bash add-submodules.sh
|
||||||
- git submodule update --init --recursive --force
|
- git submodule update --init --recursive --force
|
||||||
- bash local/bin/dfm install all
|
- bash local/bin/dfm install all
|
||||||
- pipx:
|
- pipx:
|
||||||
|
|||||||
@@ -2,7 +2,6 @@
|
|||||||
"name": "ivuorinen-dotfiles",
|
"name": "ivuorinen-dotfiles",
|
||||||
"version": "1.0.0",
|
"version": "1.0.0",
|
||||||
"description": "ivuorinen's dotfiles, this is for linting and formatters",
|
"description": "ivuorinen's dotfiles, this is for linting and formatters",
|
||||||
"main": "index.js",
|
|
||||||
"directories": {
|
"directories": {
|
||||||
"doc": "docs"
|
"doc": "docs"
|
||||||
},
|
},
|
||||||
@@ -28,8 +27,7 @@
|
|||||||
},
|
},
|
||||||
"homepage": "https://github.com/ivuorinen/dotfiles#readme",
|
"homepage": "https://github.com/ivuorinen/dotfiles#readme",
|
||||||
"devDependencies": {
|
"devDependencies": {
|
||||||
"@ivuorinen/base-configs": "^2.0.0",
|
"@ivuorinen/base-configs": "^2.0.0"
|
||||||
"prettier-plugin-sh": "^0.14.0"
|
|
||||||
},
|
},
|
||||||
"packageManager": "yarn@1.22.22"
|
"packageManager": "yarn@1.22.22"
|
||||||
}
|
}
|
||||||
|
|||||||
Reference in New Issue
Block a user