a82304b709
Release / Release (push) Successful in 14s
This PR contains the following updates: | Package | Type | Update | Change | |---|---|---|---| | [docker/login-action](https://github.com/docker/login-action) | action | minor | `v4.1.0` → `v4.2.0` | --- ### Release Notes <details> <summary>docker/login-action (docker/login-action)</summary> ### [`v4.2.0`](https://github.com/docker/login-action/releases/tag/v4.2.0) [Compare Source](https://github.com/docker/login-action/compare/v4.1.0...v4.2.0) - Bump [@​actions/core](https://github.com/actions/core) from 3.0.0 to 3.0.1 in [#​976](https://github.com/docker/login-action/pull/976) - 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.1050.0 in [#​960](https://github.com/docker/login-action/pull/960) - Bump [@​docker/actions-toolkit](https://github.com/docker/actions-toolkit) from 0.86.0 to 0.90.0 in [#​970](https://github.com/docker/login-action/pull/970) - Bump brace-expansion from 2.0.1 to 5.0.6 in [#​993](https://github.com/docker/login-action/pull/993) - Bump fast-xml-builder from 1.1.4 to 1.2.0 in [#​985](https://github.com/docker/login-action/pull/985) - Bump fast-xml-parser from 5.3.6 to 5.8.0 in [#​963](https://github.com/docker/login-action/pull/963) - Bump http-proxy-agent and https-proxy-agent to 9.0.0 in [#​961](https://github.com/docker/login-action/pull/961) - Bump postcss from 8.5.6 to 8.5.10 in [#​979](https://github.com/docker/login-action/pull/979) - Bump tar from 6.2.1 to 7.5.15 in [#​991](https://github.com/docker/login-action/pull/991) - Bump vite from 7.3.1 to 7.3.3 in [#​986](https://github.com/docker/login-action/pull/986) **Full Changelog**: <https://github.com/docker/login-action/compare/v4.1.0...v4.2.0> </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: #10 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>
91 lines
3.2 KiB
YAML
91 lines
3.2 KiB
YAML
name: Build Container
|
|
|
|
on:
|
|
workflow_call:
|
|
inputs:
|
|
prerelease:
|
|
type: boolean
|
|
description: Whether to create a prerelease tag
|
|
default: false
|
|
dry-run:
|
|
type: boolean
|
|
description: Whether to dry run the build and push
|
|
default: false
|
|
registry:
|
|
type: string
|
|
description: The registry to use
|
|
required: true
|
|
registry-user:
|
|
type: string
|
|
description: The username to use for the registry
|
|
required: true
|
|
registry-password:
|
|
type: string
|
|
description: The password to use for the registry
|
|
required: true
|
|
repo-name:
|
|
type: string
|
|
description: The name of the repository
|
|
required: true
|
|
tag:
|
|
type: string
|
|
description: The tag to use for the repository
|
|
required: true
|
|
context:
|
|
type: string
|
|
description: The context to use for the build
|
|
default: .
|
|
dockerfile:
|
|
type: string
|
|
description: The Dockerfile to use for the build
|
|
default: Dockerfile
|
|
|
|
jobs:
|
|
build_and_push:
|
|
name: Build and push
|
|
strategy:
|
|
matrix:
|
|
# Prepared for future multi-arch support in the future, as soon as ACT has support for dynamic matrixes.
|
|
arch: [amd64]
|
|
runs-on:
|
|
- ubuntu-latest
|
|
- linux_${{ matrix.arch }}
|
|
steps:
|
|
- uses: actions/checkout@de0fac2e4500dabe0009e67214ff5f5447ce83dd # v6.0.2
|
|
- uses: docker/setup-buildx-action@d7f5e7f509e45cec5c76c4d5afdd7de93d0b3df5 # v4.1.0
|
|
- uses: docker/login-action@650006c6eb7dba73a995cc03b0b2d7f5ca915bee # v4.2.0
|
|
with:
|
|
registry: ${{ inputs.registry }}
|
|
username: ${{ inputs.registry-user }}
|
|
password: ${{ inputs.registry-password }}
|
|
- uses: docker/build-push-action@bcafcacb16a39f128d818304e6c9c0c18556b85f # v7.1.0
|
|
with:
|
|
context: ${{ inputs.context }}
|
|
file: ${{ inputs.dockerfile }}
|
|
platforms: linux/${{ matrix.arch }}
|
|
push: ${{ inputs.dry-run == false || inputs.dry-run == 'false' }}
|
|
provenance: false
|
|
tags: |
|
|
${{ inputs.registry }}/${{ inputs.repo-name }}:${{ inputs.tag }}-${{ matrix.arch }}
|
|
cache-from: type=registry,ref=${{ inputs.registry }}/${{ inputs.repo-name }}:cache-${{ matrix.arch }}
|
|
cache-to: type=registry,ref=${{ inputs.registry }}/${{ inputs.repo-name }}:cache-${{ matrix.arch }},mode=max
|
|
|
|
create_manifest:
|
|
name: Create manifest
|
|
if: ${{ inputs.dry-run == false || inputs.dry-run == 'false' }}
|
|
needs:
|
|
- build_and_push
|
|
runs-on: ubuntu-latest
|
|
steps:
|
|
- uses: actions/checkout@de0fac2e4500dabe0009e67214ff5f5447ce83dd # v6.0.2
|
|
- uses: docker/login-action@650006c6eb7dba73a995cc03b0b2d7f5ca915bee # v4.2.0
|
|
with:
|
|
registry: ${{ inputs.registry }}
|
|
username: ${{ inputs.registry-user }}
|
|
password: ${{ inputs.registry-password }}
|
|
- run: |
|
|
docker manifest create ${{ inputs.registry }}/${{ inputs.repo-name }}:${{ inputs.tag }} \
|
|
${{ inputs.registry }}/${{ inputs.repo-name }}:${{ inputs.tag }}-amd64
|
|
|
|
docker manifest push ${{ inputs.registry }}/${{ inputs.repo-name }}:${{ inputs.tag }}
|