Compare commits
8
Commits
| Author | SHA1 | Date | |
|---|---|---|---|
|
|
c54a40dcda | ||
|
|
c473e80243 | ||
|
|
bf55bcce92 | ||
|
|
49248cedaf | ||
|
|
a0034b2cfc | ||
|
|
4a297180fd | ||
|
|
5fa3a3313a | ||
|
|
29ee87c4aa |
No files matched your search
@@ -23,7 +23,6 @@ jobs:
|
|||||||
with:
|
with:
|
||||||
fetch-depth: 0
|
fetch-depth: 0
|
||||||
ref: ${{ github.head_ref }}
|
ref: ${{ github.head_ref }}
|
||||||
persist-credentials: false
|
|
||||||
|
|
||||||
- name: Setup
|
- name: Setup
|
||||||
uses: ./tooling/github/setup
|
uses: ./tooling/github/setup
|
||||||
|
|||||||
@@ -1,64 +0,0 @@
|
|||||||
name: "[PR] Cleanup Docker preview image"
|
|
||||||
|
|
||||||
on:
|
|
||||||
pull_request_target:
|
|
||||||
types: [closed]
|
|
||||||
branches:
|
|
||||||
- dev
|
|
||||||
workflow_dispatch:
|
|
||||||
inputs:
|
|
||||||
pr-number:
|
|
||||||
description: "PR number whose preview image to delete"
|
|
||||||
required: true
|
|
||||||
type: number
|
|
||||||
|
|
||||||
permissions:
|
|
||||||
packages: write
|
|
||||||
|
|
||||||
env:
|
|
||||||
REGISTRY: ghcr.io
|
|
||||||
IMAGE_TAG: pr-${{ github.event.inputs.pr-number || github.event.number }}
|
|
||||||
|
|
||||||
jobs:
|
|
||||||
delete-image:
|
|
||||||
name: Delete PR preview image from GHCR
|
|
||||||
runs-on: ubuntu-latest
|
|
||||||
timeout-minutes: 5
|
|
||||||
steps:
|
|
||||||
- name: Delete package version
|
|
||||||
uses: actions/github-script@v8
|
|
||||||
with:
|
|
||||||
script: |
|
|
||||||
const packageName = 'homarr-test';
|
|
||||||
const org = context.repo.owner;
|
|
||||||
const tag = process.env.IMAGE_TAG;
|
|
||||||
|
|
||||||
const versions = await github.paginate(
|
|
||||||
github.rest.packages.getAllPackageVersionsForPackageOwnedByOrg,
|
|
||||||
{
|
|
||||||
package_type: 'container',
|
|
||||||
package_name: packageName,
|
|
||||||
org,
|
|
||||||
per_page: 100,
|
|
||||||
}
|
|
||||||
);
|
|
||||||
|
|
||||||
const target = versions.find(v =>
|
|
||||||
v.metadata?.container?.tags?.includes(tag)
|
|
||||||
);
|
|
||||||
|
|
||||||
if (!target) {
|
|
||||||
console.log(`No package version found with tag "${tag}". Nothing to delete.`);
|
|
||||||
return;
|
|
||||||
}
|
|
||||||
|
|
||||||
console.log(`Deleting package version ${target.id} (tag: ${tag})`);
|
|
||||||
|
|
||||||
await github.rest.packages.deletePackageVersionForOrg({
|
|
||||||
package_type: 'container',
|
|
||||||
package_name: packageName,
|
|
||||||
org,
|
|
||||||
package_version_id: target.id,
|
|
||||||
});
|
|
||||||
|
|
||||||
console.log(`Successfully deleted package version ${target.id}`);
|
|
||||||
@@ -1,89 +0,0 @@
|
|||||||
name: "[PR] Publish Docker preview image"
|
|
||||||
|
|
||||||
on:
|
|
||||||
pull_request:
|
|
||||||
types: [opened, synchronize, reopened, ready_for_review]
|
|
||||||
branches:
|
|
||||||
- dev
|
|
||||||
workflow_dispatch:
|
|
||||||
inputs:
|
|
||||||
pr-number:
|
|
||||||
description: "PR number (uses head ref of that PR)"
|
|
||||||
required: true
|
|
||||||
type: number
|
|
||||||
ref:
|
|
||||||
description: "Git ref to build (branch, tag, or SHA)"
|
|
||||||
required: false
|
|
||||||
type: string
|
|
||||||
default: ""
|
|
||||||
|
|
||||||
permissions:
|
|
||||||
contents: read
|
|
||||||
packages: write
|
|
||||||
|
|
||||||
env:
|
|
||||||
SKIP_ENV_VALIDATION: true
|
|
||||||
REGISTRY: ghcr.io
|
|
||||||
GHCR_REPO: ghcr.io/homarr-labs/homarr-test
|
|
||||||
TURBO_TELEMETRY_DISABLED: 1
|
|
||||||
|
|
||||||
concurrency:
|
|
||||||
group: pr-docker-${{ github.event.inputs.pr-number || github.event.number }}
|
|
||||||
cancel-in-progress: true
|
|
||||||
|
|
||||||
jobs:
|
|
||||||
build-and-push:
|
|
||||||
name: Build and push PR preview image
|
|
||||||
runs-on: ubuntu-latest
|
|
||||||
timeout-minutes: 25
|
|
||||||
if: |
|
|
||||||
github.event_name == 'workflow_dispatch' ||
|
|
||||||
(
|
|
||||||
github.event_name == 'pull_request' &&
|
|
||||||
github.event.pull_request.draft == false &&
|
|
||||||
github.event.pull_request.head.repo.full_name == github.repository
|
|
||||||
)
|
|
||||||
steps:
|
|
||||||
- uses: actions/checkout@v6
|
|
||||||
with:
|
|
||||||
persist-credentials: false
|
|
||||||
ref: ${{ github.event.inputs.ref || '' }}
|
|
||||||
|
|
||||||
- name: Determine tag
|
|
||||||
id: tag
|
|
||||||
run: |
|
|
||||||
PR_NUMBER="${{ github.event.inputs.pr-number || github.event.number }}"
|
|
||||||
echo "tag=pr-${PR_NUMBER}" >> "$GITHUB_OUTPUT"
|
|
||||||
echo "pr-number=${PR_NUMBER}" >> "$GITHUB_OUTPUT"
|
|
||||||
|
|
||||||
- name: Docker meta
|
|
||||||
id: meta
|
|
||||||
uses: docker/metadata-action@v6
|
|
||||||
with:
|
|
||||||
images: "${{ env.GHCR_REPO }}"
|
|
||||||
tags: |
|
|
||||||
type=raw,value=${{ steps.tag.outputs.tag }}
|
|
||||||
|
|
||||||
- name: Log in to the Container registry
|
|
||||||
uses: docker/login-action@v4
|
|
||||||
with:
|
|
||||||
registry: ${{ env.REGISTRY }}
|
|
||||||
username: ${{ github.actor }}
|
|
||||||
password: ${{ secrets.GITHUB_TOKEN }}
|
|
||||||
|
|
||||||
- name: Set up Docker Buildx
|
|
||||||
uses: docker/setup-buildx-action@v4
|
|
||||||
|
|
||||||
- name: Build and push
|
|
||||||
uses: docker/build-push-action@v7
|
|
||||||
with:
|
|
||||||
context: .
|
|
||||||
network: host
|
|
||||||
platforms: linux/amd64
|
|
||||||
tags: ${{ steps.meta.outputs.tags }}
|
|
||||||
labels: ${{ steps.meta.outputs.labels }}
|
|
||||||
push: true
|
|
||||||
cache-from: type=gha
|
|
||||||
cache-to: type=gha,mode=max
|
|
||||||
env:
|
|
||||||
SKIP_ENV_VALIDATION: true
|
|
||||||
@@ -43,7 +43,7 @@
|
|||||||
"random-word-slugs": "^0.1.7",
|
"random-word-slugs": "^0.1.7",
|
||||||
"react": "catalog:",
|
"react": "catalog:",
|
||||||
"react-dom": "catalog:",
|
"react-dom": "catalog:",
|
||||||
"swiper": "^14.0.2",
|
"swiper": "^14.0.5",
|
||||||
"tailwindcss": "^4.3.2"
|
"tailwindcss": "^4.3.2"
|
||||||
},
|
},
|
||||||
"devDependencies": {
|
"devDependencies": {
|
||||||
|
|||||||
@@ -6,7 +6,7 @@
|
|||||||
},
|
},
|
||||||
"engines": {
|
"engines": {
|
||||||
"node": ">=24.18.0",
|
"node": ">=24.18.0",
|
||||||
"pnpm": ">=11.10.0"
|
"pnpm": ">=11.11.0"
|
||||||
},
|
},
|
||||||
"packageManager": "pnpm@11.10.0"
|
"packageManager": "pnpm@11.11.0"
|
||||||
}
|
}
|
||||||
+2
-2
@@ -69,7 +69,7 @@
|
|||||||
},
|
},
|
||||||
"engines": {
|
"engines": {
|
||||||
"node": ">=24.18.0",
|
"node": ">=24.18.0",
|
||||||
"pnpm": ">=11.10.0"
|
"pnpm": ">=11.11.0"
|
||||||
},
|
},
|
||||||
"packageManager": "pnpm@11.10.0"
|
"packageManager": "pnpm@11.11.0"
|
||||||
}
|
}
|
||||||
Generated
+375
-575
File diff suppressed because it is too large.
Load diff
+4
-4
@@ -18,7 +18,7 @@ catalog:
|
|||||||
"@gitbeaker/rest": ^43.8.0
|
"@gitbeaker/rest": ^43.8.0
|
||||||
"@homarr/gridstack": ^1.12.0
|
"@homarr/gridstack": ^1.12.0
|
||||||
"@homarr/node-unifi": ^2.6.0
|
"@homarr/node-unifi": ^2.6.0
|
||||||
"@immich/sdk": ^3.0.1
|
"@immich/sdk": ^3.0.2
|
||||||
"@jellyfin/sdk": ^0.13.0
|
"@jellyfin/sdk": ^0.13.0
|
||||||
"@kubernetes/client-node": ^1.4.0
|
"@kubernetes/client-node": ^1.4.0
|
||||||
"@modelcontextprotocol/sdk": 1.29.0
|
"@modelcontextprotocol/sdk": 1.29.0
|
||||||
@@ -93,7 +93,7 @@ catalog:
|
|||||||
"@types/video.js": ^7.3.58
|
"@types/video.js": ^7.3.58
|
||||||
"@types/ws": ^8.18.1
|
"@types/ws": ^8.18.1
|
||||||
"@types/xml2js": ^0.4.14
|
"@types/xml2js": ^0.4.14
|
||||||
posthog-js: ^1.399.0
|
posthog-js: ^1.399.1
|
||||||
posthog-node: ^5.40.0
|
posthog-node: ^5.40.0
|
||||||
"@vitejs/plugin-react": ^6.0.3
|
"@vitejs/plugin-react": ^6.0.3
|
||||||
"@vitest/coverage-v8": ^4.1.10
|
"@vitest/coverage-v8": ^4.1.10
|
||||||
@@ -139,7 +139,7 @@ catalog:
|
|||||||
jsonpath-plus: ^10.4.0
|
jsonpath-plus: ^10.4.0
|
||||||
ldapts: 8.1.8
|
ldapts: 8.1.8
|
||||||
lodash.clonedeep: ^4.5.0
|
lodash.clonedeep: ^4.5.0
|
||||||
lucide-react: ^1.23.0
|
lucide-react: ^1.24.0
|
||||||
"mantine-contextmenu": ^9.3.1
|
"mantine-contextmenu": ^9.3.1
|
||||||
mantine-datatable: ^9.3.1
|
mantine-datatable: ^9.3.1
|
||||||
mantine-react-table: npm:mantine-react-table-open@9.0.3
|
mantine-react-table: npm:mantine-react-table-open@9.0.3
|
||||||
@@ -177,7 +177,7 @@ catalog:
|
|||||||
tsdav: ^2.3.0
|
tsdav: ^2.3.0
|
||||||
tsx: 4.20.4
|
tsx: 4.20.4
|
||||||
turbo: ^2.10.4
|
turbo: ^2.10.4
|
||||||
typescript: ^7.0.2
|
typescript: "npm:@typescript/typescript6@^6.0.2"
|
||||||
vite: ^8.1.4
|
vite: ^8.1.4
|
||||||
undici: 7.28.0
|
undici: 7.28.0
|
||||||
use-deep-compare-effect: ^1.8.1
|
use-deep-compare-effect: ^1.8.1
|
||||||
|
|||||||
Reference in new issue
Block a user