️ Improve dev container and workflow configs

This commit is contained in:
Alicia Sykes 2026-03-11 11:34:06 +00:00
parent 1b1de5a99b
commit d5f2af35b0
6 changed files with 50 additions and 50 deletions

View file

@ -3,16 +3,17 @@
{
"name": "Dashy",
// Or use a Dockerfile or Docker Compose file. More info: https://containers.dev/guide/dockerfile
"image": "mcr.microsoft.com/devcontainers/javascript-node:1-18-bullseye",
"image": "mcr.microsoft.com/devcontainers/javascript-node:1-24-bookworm",
"customizations": {
"vscode": {
"extensions": [
"Vue.volar",
"dbaeumer.vscode-eslint",
"ms-azuretools.vscode-docker",
"ms-edgedevtools.vscode-edge-devtools",
"firefox-devtools.vscode-firefox-debug",
"aaravb.chrome-extension-developer-tools"
"EditorConfig.EditorConfig",
"esbenp.prettier-vscode",
"vitest.explorer",
"redhat.vscode-yaml"
]
}
},
@ -22,14 +23,11 @@
"ghcr.io/devcontainers/features/github-cli:1": {}
},
// Use 'forwardPorts' to make a list of ports inside the container available locally.
// "forwardPorts": [],
// Make the dev server and production server ports available locally.
"forwardPorts": [8080, 4000],
// Use 'postCreateCommand' to run commands after the container is created.
"postCreateCommand": "yarn install --ignore-engines --immutable --no-cache --network-timeout 300000 --network-concurrency 1"
// Configure tool-specific properties.
// "customizations": {},
"postCreateCommand": "yarn install --ignore-engines --network-timeout 300000"
// Uncomment to connect as root instead. More info: https://aka.ms/dev-containers-non-root.
// "remoteUser": "root"

View file

@ -14,7 +14,7 @@ concurrency:
cancel-in-progress: false
permissions:
contents: read
contents: write
pull-requests: read
jobs:
@ -104,5 +104,12 @@ jobs:
echo "Tag $VERSION already exists, skipping"
exit 0
fi
git tag -a "$VERSION" -m "Release v$VERSION"
printf 'Published Dashy v%s 🚀\n\nPR #%s: %s\nMerge commit: %s\n' \
"$VERSION" \
"$PR_NUMBER" \
"$PR_TITLE" \
"$MERGE_SHA" > tag-message.txt
git tag -a "$VERSION" -F tag-message.txt
git push origin "$VERSION"

View file

@ -1,4 +1,6 @@
# Pushes the contents of the repo to the Codeberg mirror
# Syncs the full source of the Dashy repo over to our Codeberg mirror
# For all you non-Microsoft babes!
# This is then accessible over at https://codeberg.org/alicia/dashy
name: 🪞 Mirror to Codeberg
on:
workflow_dispatch:
@ -8,9 +10,10 @@ jobs:
codeberg:
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@v2
with: { fetch-depth: 0 }
- uses: pixta-dev/repository-mirroring-action@v1
- uses: lissy93/repo-mirror-action@v1.5.0
with:
target_repo_url: git@codeberg.org:alicia/dashy.git
ssh_private_key: ${{ secrets.CODEBERG_SSH }}
ssh_key: ${{ secrets.CODEBERG_SSH }}
host: git@codeberg.org
user: alicia
repo: dashy
force_push: false

View file

@ -94,22 +94,23 @@ jobs:
run: sh tests/docker-smoke-test.sh
timeout-minutes: 10
security:
name: 🔒 Security Audit
runs-on: ubuntu-latest
continue-on-error: true
steps:
- name: 🛎️ Checkout Code
uses: actions/checkout@v4
- name: 🔧 Setup Node.js
uses: actions/setup-node@v4
with:
node-version: '20'
cache: 'yarn'
- name: 📦 Install Dependencies
run: yarn install --frozen-lockfile
- name: 🔒 Run Security Audit
run: yarn audit --level high
# TODO: Re-enable security audit job
# security:
# name: 🔒 Security Audit
# runs-on: ubuntu-latest
# continue-on-error: true
# steps:
# - name: 🛎️ Checkout Code
# uses: actions/checkout@v4
#
# - name: 🔧 Setup Node.js
# uses: actions/setup-node@v4
# with:
# node-version: '20'
# cache: 'yarn'
#
# - name: 📦 Install Dependencies
# run: yarn install --frozen-lockfile
#
# - name: 🔒 Run Security Audit
# run: yarn audit --level high

View file

@ -46,7 +46,7 @@ jobs:
- name: Setup Node.js 🟢
uses: actions/setup-node@v4
with:
node-version: '18'
node-version: '22'
- name: Install website dependencies 📦
working-directory: website-docs
@ -59,7 +59,7 @@ jobs:
run: |
cp -r ../master-docs/docs ./
python ./do-doc-updaty-magic.py
- name: Commit changes 🚀
run: |
cd website-docs

View file

@ -9,9 +9,9 @@ jobs:
runs-on: ubuntu-latest
steps:
- name: Checkout
uses: actions/checkout@master
uses: actions/checkout@v4
- name: Upload Docs to GH Wiki
uses: docker://decathlon/wiki-page-creator-action:latest
uses: docker://decathlon/wiki-page-creator-action:2.0.3
env:
GH_PAT: ${{ secrets.BOT_GITHUB_TOKEN || secrets.GITHUB_TOKEN }}
ACTION_MAIL: alicia-gh-bot@mail.as93.net
@ -19,12 +19,3 @@ jobs:
OWNER: Lissy93
REPO_NAME: Dashy
MD_FOLDER: docs/
# - name: Sync Wiki
# uses: joeizzard/action-wiki-sync@master
# with:
# username: example
# access_token: ${{ secrets.GITHUB_TOKEN }}
# wiki_folder: ./docs
# commit_username: 'liss-bot'
# commit_email: 'liss-bot@d0h.co'
# commit_message: '📕 Chore: Sync Wiki'