Skip to content
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
16 changes: 6 additions & 10 deletions .github/workflows/multi-runner-build.yml
Original file line number Diff line number Diff line change
Expand Up @@ -40,11 +40,12 @@ on:
type: string
default: 'semver'
secrets:
GITHUB_APP_TOKEN:
required:
DOCKERHUB_USERNAME:
required: false
DOCKERHUB_TOKEN:
required: false

env:
GHCR_IMAGE: ghcr.io/${{ github.repository_owner }}/${{ inputs.image }}
DOCKERHUB_IMAGE: altran1502/${{ inputs.image }}
Expand Down Expand Up @@ -83,9 +84,6 @@ jobs:
build:
needs: matrix
runs-on: ${{ matrix.runner }}
permissions:
contents: read
packages: write
strategy:
fail-fast: false
matrix:
Expand All @@ -95,13 +93,14 @@ jobs:
uses: actions/checkout@08eba0b27e820071cde6df949e0beb9ba4906955 # v4.3.0
with:
persist-credentials: false
token: ${{ secrets.GITHUB_APP_TOKEN }}

- uses: immich-app/devtools/actions/image-build@7d95e52a7a597ce005a306d6891467fc15427b69 # image-build-action-0.1.1
with:
context: ${{ inputs.context }}
dockerfile: ${{ inputs.dockerfile }}
image: ${{ env.GHCR_IMAGE }}
ghcr-token: ${{ secrets.GITHUB_TOKEN }}
ghcr-token: ${{ secrets.GITHUB_APP_TOKEN }}
platform: ${{ matrix.platform }}
artifact-key-base: ${{ needs.matrix.outputs.key }}
build-args: ${{ inputs.build-args }}
Expand All @@ -111,17 +110,14 @@ jobs:
needs: [matrix, build]
runs-on: ubuntu-latest
if: ${{ !github.event.pull_request.head.repo.fork }}
permissions:
contents: read
actions: read
packages: write
steps:
- name: Download digests
uses: actions/download-artifact@d3f86a106a0bac45b974a628896c90dbdf5c8093 # v4.3.0
with:
path: ${{ runner.temp }}/digests
pattern: ${{ needs.matrix.outputs.key }}-*
merge-multiple: true
github-token: ${{ secrets.GITHUB_APP_TOKEN }}

- name: Login to Docker Hub
if: ${{ inputs.dockerhub-push }}
Expand All @@ -135,7 +131,7 @@ jobs:
with:
registry: ghcr.io
username: ${{ github.repository_owner }}
password: ${{ secrets.GITHUB_TOKEN }}
password: ${{ secrets.GITHUB_APP_TOKEN }}

- name: Set up Docker Buildx
uses: docker/setup-buildx-action@e468171a9de216ec08956ac3ada2f0791b6bd435 # v3.11.1
Expand Down
6 changes: 6 additions & 0 deletions actions/pre-job/action.yml
Original file line number Diff line number Diff line change
Expand Up @@ -4,6 +4,9 @@ inputs:
filters:
description: 'Path filters as YAML string'
required: true
github-token:
description: 'Github token to use'
required: true
force-filters:
description: 'Additional path filters that trigger force-run (e.g., workflow files)'
required: false
Expand Down Expand Up @@ -190,6 +193,7 @@ runs:
uses: actions/checkout@08eba0b27e820071cde6df949e0beb9ba4906955 # v4.3.0
with:
persist-credentials: false
token: ${{ inputs.github-token }}

- name: Check force paths
if: ${{ steps.check-conditions.outputs.needs_path_filtering == 'true' && inputs.force-filters != '' }}
Expand Down Expand Up @@ -240,13 +244,15 @@ runs:
uses: dorny/paths-filter@de90cc6fb38fc0963ad72b210f1f284cd68cea36 # v3.0.2
with:
filters: ${{ steps.force_paths.outputs.force-paths-yaml }}
token: ${{ inputs.github-token }}

- name: Check main paths
if: ${{ steps.check-conditions.outputs.needs_path_filtering == 'true' && (inputs.force-filters == '' || steps.force_paths_filter.outputs.force-paths != 'true') }}
id: main_paths
uses: dorny/paths-filter@de90cc6fb38fc0963ad72b210f1f284cd68cea36 # v3.0.2
with:
filters: ${{ inputs.filters }}
token: ${{ inputs.github-token }}

- name: Generate final outputs
id: generate-outputs
Expand Down
5 changes: 5 additions & 0 deletions actions/use-mise/action.yml
Original file line number Diff line number Diff line change
@@ -1,10 +1,15 @@
name: 'Use Mise'
description: 'Use Mise with a pinned version'
inputs:
github-token:
description: 'Github token to use'
required: true
runs:
using: 'composite'
steps:
- uses: jdx/mise-action@c37c93293d6b742fc901e1406b8f764f6fb19dac # v2.4.4
with:
github_token: ${{ inputs.GITHUB_TOKEN }}
version: 2025.7.12
sha256: ${{ runner.os == 'Linux' && runner.arch == 'X64' && '78e141b547e4b50dac6b97f9be35e117f6a3e520aa6891aa5ee75c956585d5d2' ||
runner.os == 'Linux' && runner.arch == 'ARM64' && '2e06c7bc32263d7a4ec45edb760922c85e37adba048dc1249d281cbf46e7f703' ||
Expand Down
Loading