This PR contains the following updates: | Package | Type | Update | Change | |---|---|---|---| | [dorny/paths-filter](https://github.com/dorny/paths-filter) | action | major | `v3.0.2` → `v4.0.1` | --- ### Release Notes <details> <summary>dorny/paths-filter (dorny/paths-filter)</summary> ### [`v4.0.1`](https://github.com/dorny/paths-filter/releases/tag/v4.0.1) [Compare Source](https://github.com/dorny/paths-filter/compare/v4.0.0...v4.0.1) #### What's Changed - Support merge queue by [@​masaru-iritani](https://github.com/masaru-iritani) in [#​255](https://github.com/dorny/paths-filter/pull/255) #### New Contributors - [@​masaru-iritani](https://github.com/masaru-iritani) made their first contribution in [#​255](https://github.com/dorny/paths-filter/pull/255) **Full Changelog**: <https://github.com/dorny/paths-filter/compare/v4.0.0...v4.0.1> ### [`v4.0.0`](https://github.com/dorny/paths-filter/blob/HEAD/CHANGELOG.md#v400) [Compare Source](https://github.com/dorny/paths-filter/compare/v3.0.3...v4.0.0) - [Update action runtime to node24](https://github.com/dorny/paths-filter/pull/294) ### [`v3.0.3`](https://github.com/dorny/paths-filter/blob/HEAD/CHANGELOG.md#v303) [Compare Source](https://github.com/dorny/paths-filter/compare/v3.0.2...v3.0.3) - [Add missing predicate-quantifier](https://github.com/dorny/paths-filter/pull/279) </details> --- ### Configuration 📅 **Schedule**: 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. 🔕 **Ignore**: Close this PR and you won't be reminded about this update again. --- - [ ] <!-- rebase-check -->If you want to rebase/retry this PR, check this box --- This PR has been generated by [Renovate Bot](https://github.com/renovatebot/renovate). <!--renovate-debug:eyJjcmVhdGVkSW5WZXIiOiI0My41LjQiLCJ1cGRhdGVkSW5WZXIiOiI0My41LjQiLCJ0YXJnZXRCcmFuY2giOiJtYWluIiwibGFiZWxzIjpbImFjdGlvbiIsImRlcHMiXX0=--> Reviewed-on: #35 Reviewed-by: t.behrendt <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@de0fac2e4500dabe0009e67214ff5f5447ce83dd # v6.0.2
|
|
|
|
- name: Get changed files
|
|
id: filter
|
|
uses: dorny/paths-filter@fbd0ab8f3e69293af611ebaee6363fc25e6d187d # v4.0.1
|
|
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@de0fac2e4500dabe0009e67214ff5f5447ce83dd # v6.0.2
|
|
- uses: docker/setup-buildx-action@4d04d5d9486b7bd6fa91e7baf45bbb4f8b9deedd # v4
|
|
- uses: docker/login-action@c94ce9fb468520275223c153574b00df6fe4bcc9 # v3.7.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@d08e5c354a6adb9ed34480a06d141179aa583294 # v7.0.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@de0fac2e4500dabe0009e67214ff5f5447ce83dd # v6.0.2
|
|
- 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@c94ce9fb468520275223c153574b00df6fe4bcc9 # v3.7.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
|