Compare commits
7 Commits
3.14.0
...
82ba7d43b2
| Author | SHA1 | Date | |
|---|---|---|---|
| 82ba7d43b2 | |||
| f6888f8bda | |||
|
dd0da551b3
|
|||
| d576f9ab36 | |||
|
65abb422ba
|
|||
| 1236defba7 | |||
| c196f626bb |
@@ -5,8 +5,13 @@ on:
|
||||
branches:
|
||||
- release
|
||||
|
||||
repository_dispatch:
|
||||
types: [directus_update]
|
||||
workflow_dispatch:
|
||||
inputs:
|
||||
directus-release:
|
||||
description: 'A parameter passed via API'
|
||||
required: true
|
||||
type: boolean
|
||||
default: false
|
||||
|
||||
jobs:
|
||||
build:
|
||||
@@ -25,7 +30,7 @@ jobs:
|
||||
- name: Set up Bun
|
||||
uses: oven-sh/setup-bun@v2
|
||||
with:
|
||||
bun-version: 1.3.10
|
||||
bun-version: 1.3.11
|
||||
|
||||
- name: Install Dependencies
|
||||
run: bun install --frozen-lockfile
|
||||
@@ -36,7 +41,7 @@ jobs:
|
||||
path: |
|
||||
.astro
|
||||
node_modules/.vite
|
||||
key: ${{ runner.os }}-astro-${{ hashFiles('**/*.astro', 'astro.config.mjs') }}-${{ github.event_name == 'repository_dispatch' && github.run_id || 'static' }}
|
||||
key: ${{ runner.os }}-astro-${{ hashFiles('**/*.astro', 'astro.config.mjs') }}-${{ github.event_name == 'workflow_dispatch' && github.run_id || 'static' }}
|
||||
restore-keys: |
|
||||
${{ runner.os }}-astro-${{ hashFiles('**/*.astro', 'astro.config.mjs') }}-
|
||||
${{ runner.os }}-astro-
|
||||
@@ -103,8 +108,8 @@ jobs:
|
||||
needs: [ build, guarddog ]
|
||||
runs-on: ubuntu-js
|
||||
if: |
|
||||
github.event_name != 'repository_dispatch' ||
|
||||
github.event.client_payload.data.published == true
|
||||
github.event_name != 'workflow_dispatch' ||
|
||||
inputs['directus-release'] == 'true'
|
||||
outputs:
|
||||
new-release-published: ${{ steps.semantic.outputs.new-release-published }}
|
||||
new-release-version: ${{ steps.semantic.outputs.new-release-version }}
|
||||
@@ -117,7 +122,7 @@ jobs:
|
||||
token: ${{ secrets.BOT_TOKEN }}
|
||||
|
||||
- name: Prepare Content Patch
|
||||
if: github.event_name == 'repository_dispatch'
|
||||
if: inputs['directus-release'] == 'true'
|
||||
run: |
|
||||
git config user.name "gitea-bot"
|
||||
git config user.email "gitea-bot@alexlebens.net"
|
||||
@@ -131,7 +136,7 @@ jobs:
|
||||
- name: Set up Bun
|
||||
uses: oven-sh/setup-bun@v2
|
||||
with:
|
||||
bun-version: 1.3.10
|
||||
bun-version: 1.3.11
|
||||
|
||||
- name: Install Dependencies
|
||||
run: bun install --frozen-lockfile
|
||||
@@ -244,7 +249,7 @@ jobs:
|
||||
tags: action,failed
|
||||
details: 'Harbor Image for Site Profile has failed to be released.'
|
||||
icon: 'https://cdn.jsdelivr.net/gh/selfhst/icons/png/gitea.png'
|
||||
actions: '[{"action": "view", "label": "Open Gitea", "url": "https://gitea.alexlebens.dev/alexlebens/site-profile/actions?workflow=release-image.yml", "clear": true}]'
|
||||
actions: '[{"action": "view", "label": "Open Gitea", "url": "https://gitea.alexlebens.dev/alexlebens/site-profile/actions?workflow=release-image.yaml", "clear": true}]'
|
||||
image: true
|
||||
|
||||
release-gitea:
|
||||
|
||||
@@ -27,7 +27,7 @@ jobs:
|
||||
- name: Set up Bun
|
||||
uses: oven-sh/setup-bun@v2
|
||||
with:
|
||||
bun-version: 1.3.10
|
||||
bun-version: 1.3.11
|
||||
|
||||
- name: Install Dependencies
|
||||
run: bun install --frozen-lockfile
|
||||
|
||||
@@ -1,5 +1,5 @@
|
||||
ARG REGISTRY=dhi.io
|
||||
FROM ${REGISTRY}/bun:1.3.10-alpine3.22-dev AS builder
|
||||
FROM ${REGISTRY}/bun:1.3.11-alpine3.22-dev AS builder
|
||||
|
||||
WORKDIR /app
|
||||
|
||||
@@ -17,7 +17,7 @@ FROM build-deps AS build
|
||||
COPY . .
|
||||
RUN bun run build
|
||||
|
||||
FROM ${REGISTRY}/bun:1.3.10-alpine3.22 AS runtime
|
||||
FROM ${REGISTRY}/bun:1.3.11-alpine3.22 AS runtime
|
||||
WORKDIR /app
|
||||
COPY --from=prod-deps /app/node_modules /app/node_modules
|
||||
COPY --from=build /app/dist /app/dist
|
||||
|
||||
Reference in New Issue
Block a user