36f153987a
This PR contains the following updates: | Package | Type | Update | Change | |---|---|---|---| | [docker/build-push-action](https://github.com/docker/build-push-action) | action | minor | `v7.2.0` → `v7.3.0` | | [docker/login-action](https://github.com/docker/login-action) | action | minor | `v4.2.0` → `v4.4.0` | | [docker/setup-buildx-action](https://github.com/docker/setup-buildx-action) | action | minor | `v4.1.0` → `v4.2.0` | | [dorny/paths-filter](https://github.com/dorny/paths-filter) | action | patch | `v4.0.1` → `v4.0.2` | --- ### Release Notes <details> <summary>docker/build-push-action (docker/build-push-action)</summary> ### [`v7.3.0`](https://github.com/docker/build-push-action/releases/tag/v7.3.0) [Compare Source](https://github.com/docker/build-push-action/compare/v7.2.0...v7.3.0) - Preserve names in esbuild bundle by [@​crazy-max](https://github.com/crazy-max) in [#​1567](https://github.com/docker/build-push-action/pull/1567) - Bump [@​docker/actions-toolkit](https://github.com/docker/actions-toolkit) from 0.90.0 to 0.92.0 in [#​1545](https://github.com/docker/build-push-action/pull/1545) [#​1572](https://github.com/docker/build-push-action/pull/1572) - Bump [@​sigstore/core](https://github.com/sigstore/core) from 3.1.0 to 3.2.1 in [#​1568](https://github.com/docker/build-push-action/pull/1568) - Bump js-yaml from 4.1.1 to 4.3.0 in [#​1566](https://github.com/docker/build-push-action/pull/1566) - Bump tmp from 0.2.5 to 0.2.7 in [#​1547](https://github.com/docker/build-push-action/pull/1547) - Bump undici from 6.24.1 to 6.27.0 in [#​1564](https://github.com/docker/build-push-action/pull/1564) - Bump vite from 7.3.2 to 7.3.6 in [#​1563](https://github.com/docker/build-push-action/pull/1563) **Full Changelog**: <https://github.com/docker/build-push-action/compare/v7.2.0...v7.3.0> </details> <details> <summary>docker/login-action (docker/login-action)</summary> ### [`v4.4.0`](https://github.com/docker/login-action/releases/tag/v4.4.0) [Compare Source](https://github.com/docker/login-action/compare/v4.3.0...v4.4.0) - Skip empty `registry-auth` secret mask by [@​crazy-max](https://github.com/crazy-max) in [#​1035](https://github.com/docker/login-action/pull/1035) - Bump [@​aws-sdk/client-ecr](https://github.com/aws-sdk/client-ecr) and [@​aws-sdk/client-ecr-public](https://github.com/aws-sdk/client-ecr-public) to 3.1077.0 [#​1034](https://github.com/docker/login-action/pull/1034) **Full Changelog**: <https://github.com/docker/login-action/compare/v4.3.0...v4.4.0> ### [`v4.3.0`](https://github.com/docker/login-action/releases/tag/v4.3.0) [Compare Source](https://github.com/docker/login-action/compare/v4.2.0...v4.3.0) - Preserve names in esbuild bundle by [@​crazy-max](https://github.com/crazy-max) in [#​1022](https://github.com/docker/login-action/pull/1022) - Bump [@​aws-sdk/client-ecr](https://github.com/aws-sdk/client-ecr) and [@​aws-sdk/client-ecr-public](https://github.com/aws-sdk/client-ecr-public) to 3.1076.0 [#​999](https://github.com/docker/login-action/pull/999) [#​1030](https://github.com/docker/login-action/pull/1030) - Bump [@​docker/actions-toolkit](https://github.com/docker/actions-toolkit) from 0.90.0 to 0.92.0 in [#​1004](https://github.com/docker/login-action/pull/1004) [#​1027](https://github.com/docker/login-action/pull/1027) - Bump [@​sigstore/core](https://github.com/sigstore/core) from 3.1.0 to 3.2.1 in [#​1023](https://github.com/docker/login-action/pull/1023) - Bump [@​sigstore/verify](https://github.com/sigstore/verify) from 3.1.0 to 3.1.1 in [#​1029](https://github.com/docker/login-action/pull/1029) - Bump http-proxy-agent and https-proxy-agent to 9.1.0 in [#​1017](https://github.com/docker/login-action/pull/1017) - Bump js-yaml from 4.1.1 to 5.2.0 in [#​1028](https://github.com/docker/login-action/pull/1028) - Bump sigstore from 4.1.0 to 4.1.1 in [#​1031](https://github.com/docker/login-action/pull/1031) - Bump tmp from 0.2.5 to 0.2.7 in [#​1002](https://github.com/docker/login-action/pull/1002) - Bump undici from 6.24.1 to 6.27.0 in [#​1020](https://github.com/docker/login-action/pull/1020) - Bump vite from 7.3.3 to 7.3.6 in [#​1019](https://github.com/docker/login-action/pull/1019) **Full Changelog**: <https://github.com/docker/login-action/compare/v4.2.0...v4.3.0> </details> <details> <summary>docker/setup-buildx-action (docker/setup-buildx-action)</summary> ### [`v4.2.0`](https://github.com/docker/setup-buildx-action/releases/tag/v4.2.0) [Compare Source](https://github.com/docker/setup-buildx-action/compare/v4.1.0...v4.2.0) - Preserve names in esbuild bundle by [@​crazy-max](https://github.com/crazy-max) in [#​572](https://github.com/docker/setup-buildx-action/pull/572) - Bump [@​actions/core](https://github.com/actions/core) from 3.0.0 to 3.0.1 in [#​551](https://github.com/docker/setup-buildx-action/pull/551) - Bump [@​docker/actions-toolkit](https://github.com/docker/actions-toolkit) from 0.90.0 to 0.92.0 in [#​557](https://github.com/docker/setup-buildx-action/pull/557) [#​580](https://github.com/docker/setup-buildx-action/pull/580) - Bump [@​sigstore/core](https://github.com/sigstore/core) from 3.1.0 to 3.2.1 in [#​573](https://github.com/docker/setup-buildx-action/pull/573) - Bump [@​sigstore/verify](https://github.com/sigstore/verify) from 3.1.0 to 3.1.1 in [#​576](https://github.com/docker/setup-buildx-action/pull/576) - Bump js-yaml from 4.1.1 to 5.2.0 in [#​562](https://github.com/docker/setup-buildx-action/pull/562) - Bump sigstore from 4.1.0 to 4.1.1 in [#​577](https://github.com/docker/setup-buildx-action/pull/577) - Bump tmp from 0.2.5 to 0.2.7 in [#​556](https://github.com/docker/setup-buildx-action/pull/556) - Bump undici from 6.25.0 to 6.27.0 in [#​570](https://github.com/docker/setup-buildx-action/pull/570) - Bump vite from 7.3.2 to 7.3.6 in [#​569](https://github.com/docker/setup-buildx-action/pull/569) **Full Changelog**: <https://github.com/docker/setup-buildx-action/compare/v4.1.0...v4.2.0> </details> <details> <summary>dorny/paths-filter (dorny/paths-filter)</summary> ### [`v4.0.2`](https://github.com/dorny/paths-filter/blob/HEAD/CHANGELOG.md#v402) [Compare Source](https://github.com/dorny/paths-filter/compare/v4.0.1...v4.0.2) - [Work around git dubious ownership errors in container jobs](https://github.com/dorny/paths-filter/pull/317) - [Use rev-parse instead of branch --show-current for older git compat](https://github.com/dorny/paths-filter/pull/303) - [Fix warning message](https://github.com/dorny/paths-filter/pull/282) </details> --- ### Configuration 📅 **Schedule**: (UTC) - Branch creation - At any time (no schedule defined) - Automerge - At any time (no schedule defined) 🚦 **Automerge**: Disabled by config. Please merge this manually once you are satisfied. ♻ **Rebasing**: Whenever PR becomes conflicted, or you tick the rebase/retry checkbox. 👻 **Immortal**: This PR will be recreated if closed unmerged. Get [config help](undefined) if that's undesired. --- - [ ] <!-- rebase-check -->If you want to rebase/retry this PR, check this box --- This PR has been generated by [Mend Renovate](https://github.com/renovatebot/renovate). <!--renovate-debug:eyJjcmVhdGVkSW5WZXIiOiI0My4yMzMuNCIsInVwZGF0ZWRJblZlciI6IjQzLjIzMy40IiwidGFyZ2V0QnJhbmNoIjoibWFpbiIsImxhYmVscyI6WyJhY3Rpb24iLCJhdXRvbWVyZ2UiLCJkZXBzIl19--> Reviewed-on: #62 Reviewed-by: t.behrendt <2+t.behrendt@noreply.localhost> Co-authored-by: Renovate Bot <renovate@t00n.de> Co-committed-by: Renovate Bot <renovate@t00n.de>
93 lines
3.2 KiB
YAML
93 lines
3.2 KiB
YAML
name: CD
|
|
|
|
on:
|
|
push:
|
|
branches:
|
|
- main
|
|
|
|
env:
|
|
DOCKER_REGISTRY: gitea.t000-n.de
|
|
|
|
jobs:
|
|
check-changes:
|
|
name: Check changes
|
|
runs-on: ubuntu-latest
|
|
outputs:
|
|
changes: ${{ steps.filter.outputs.code }}
|
|
steps:
|
|
- name: Checkout
|
|
uses: actions/checkout@9c091bb21b7c1c1d1991bb908d89e4e9dddfe3e0 # v7.0.0
|
|
|
|
- name: Get changed files
|
|
id: filter
|
|
uses: dorny/paths-filter@7b450fff21473bca461d4b92ce414b9d0420d706 # v4.0.2
|
|
with:
|
|
filters: |
|
|
code:
|
|
- 'src/**'
|
|
- '.bun-version'
|
|
- 'package.json'
|
|
- 'tsconfig.json'
|
|
- 'Dockerfile'
|
|
- 'bun.lockb'
|
|
|
|
test:
|
|
uses: ./.gitea/workflows/ci.yaml
|
|
|
|
build_and_push:
|
|
name: Build and push
|
|
strategy:
|
|
matrix:
|
|
arch: [ amd64, arm64 ]
|
|
needs:
|
|
- test
|
|
- check-changes
|
|
runs-on:
|
|
- ubuntu-latest
|
|
- linux_${{ matrix.arch }}
|
|
if: ${{ needs.check-changes.outputs.changes == 'true' }}
|
|
steps:
|
|
- uses: actions/checkout@9c091bb21b7c1c1d1991bb908d89e4e9dddfe3e0 # v7.0.0
|
|
- uses: docker/setup-buildx-action@bb05f3f5519dd87d3ba754cc423b652a5edd6d2c # v4.2.0
|
|
- uses: docker/login-action@af1e73f918a031802d376d3c8bbc3fe56130a9b0 # v4.4.0
|
|
with:
|
|
registry: ${{ env.DOCKER_REGISTRY }}
|
|
username: ${{ secrets.REGISTRY_USER }}
|
|
password: ${{ secrets.REGISTRY_PASSWORD }}
|
|
- id: meta
|
|
run: |
|
|
echo REPO_NAME=$(echo ${GITHUB_REPOSITORY} | awk -F"/" '{print $2}' | tr '[:upper:]' '[:lower:]') >> $GITHUB_OUTPUT
|
|
echo REPO_VERSION=$(git describe --tags --always | sed 's/^v//') >> $GITHUB_OUTPUT
|
|
- uses: docker/build-push-action@53b7df96c91f9c12dcc8a07bcb9ccacbed38856a # v7.3.0
|
|
with:
|
|
context: .
|
|
file: ./Dockerfile
|
|
platforms: linux/${{ matrix.arch }}
|
|
push: true
|
|
provenance: false
|
|
tags: |
|
|
${{ env.DOCKER_REGISTRY }}/t.behrendt/${{ steps.meta.outputs.REPO_NAME }}:${{ steps.meta.outputs.REPO_VERSION }}-${{ matrix.arch }}
|
|
|
|
create_manifest:
|
|
name: Create manifest
|
|
needs:
|
|
- build_and_push
|
|
runs-on: ubuntu-latest
|
|
steps:
|
|
- uses: actions/checkout@9c091bb21b7c1c1d1991bb908d89e4e9dddfe3e0 # v7.0.0
|
|
- id: meta
|
|
run: |
|
|
echo REPO_NAME=$(echo ${GITHUB_REPOSITORY} | awk -F"/" '{print $2}' | tr '[:upper:]' '[:lower:]') >> $GITHUB_OUTPUT
|
|
echo REPO_VERSION=$(git describe --tags --always | sed 's/^v//') >> $GITHUB_OUTPUT
|
|
- uses: docker/login-action@af1e73f918a031802d376d3c8bbc3fe56130a9b0 # v4.4.0
|
|
with:
|
|
registry: ${{ env.DOCKER_REGISTRY }}
|
|
username: ${{ secrets.REGISTRY_USER }}
|
|
password: ${{ secrets.REGISTRY_PASSWORD }}
|
|
- run: |
|
|
docker manifest create ${{ env.DOCKER_REGISTRY }}/t.behrendt/${{ steps.meta.outputs.REPO_NAME }}:latest \
|
|
${{ env.DOCKER_REGISTRY }}/t.behrendt/${{ steps.meta.outputs.REPO_NAME }}:${{ steps.meta.outputs.REPO_VERSION }}-amd64 \
|
|
${{ env.DOCKER_REGISTRY }}/t.behrendt/${{ steps.meta.outputs.REPO_NAME }}:${{ steps.meta.outputs.REPO_VERSION }}-arm64
|
|
|
|
docker manifest push ${{ env.DOCKER_REGISTRY }}/t.behrendt/${{ steps.meta.outputs.REPO_NAME }}:latest
|