Update action.yml
All checks were successful
Actionlint / build (push) Successful in 11s

This commit is contained in:
2025-08-18 14:06:21 +03:00
parent e5a635c741
commit 9d6404c2f4

View File

@@ -21,12 +21,15 @@ runs:
using: "composite"
steps:
- run: echo "::group::Checkout repository"
if: ${{ always() }}
- name: Checkout repository
uses: actions/checkout@08eba0b27e820071cde6df949e0beb9ba4906955 # v4.3.0
with:
fetch-depth: '0'
- run: echo "::endgroup::"
if: ${{ always() }}
- run: echo "::group::Bump version and push tag"
if: ${{ always() }}
- name: Bump version and push tag
id: tag
uses: phadric/github-tag-action@a5250a59655e9f4b0350407380a92c73948f2aec # master
@@ -38,7 +41,9 @@ runs:
PRERELEASE: true
PRERELEASE_SUFFIX: ${{ github.ref_name }}
- run: echo "::endgroup::"
if: ${{ always() }}
- run: echo "::group::Extract Docker metadata"
if: ${{ always() }}
- name: Extract Docker metadata
id: meta
uses: docker/metadata-action@c1e51972afc2121e065aed6d45c65596fe445f3f # v5.8.0
@@ -54,18 +59,24 @@ runs:
type=semver,pattern={{major}},value=${{steps.tag.outputs.tag}},enable=${{ !startsWith(steps.tag.outputs.tag, 'v0.') }}
images: ${{ inputs.registry }}/${{ inputs.image_name }}
- run: echo "::endgroup::"
if: ${{ always() }}
- run: echo "::group::Configure build Cache"
if: ${{ always() }}
- uses: int128/docker-build-cache-config-action@338206c80bf9eeb2b9694b7b4fc8c247c317e2a8 # v1.38.0
id: cache
with:
image: ${{ inputs.cache-registry }}/${{ inputs.image_name }}-cache
extra-cache-to: image-manifest=true
- run: echo "::endgroup::"
if: ${{ always() }}
- run: echo "::group::Setup Buildx"
if: ${{ always() }}
- name: Setup Docker buildx
uses: docker/setup-buildx-action@e468171a9de216ec08956ac3ada2f0791b6bd435 # v3.11.1
- run: echo "::endgroup::"
if: ${{ always() }}
- run: echo "::group::Log into Registry ${{ inputs.registry }}"
if: ${{ always() }}
- name: Log into registry ${{ inputs.registry }}
uses: docker/login-action@184bdaa0721073962dff0199f1fb9940f07167d1 # v3.5.0
with:
@@ -73,7 +84,9 @@ runs:
username: ${{ github.actor }}
password: ${{ inputs.token }}
- run: echo "::endgroup::"
if: ${{ always() }}
- run: echo "::group::Build and Push docker image"
if: ${{ always() }}
- name: Build and push Docker image
id: build-and-push
uses: docker/build-push-action@263435318d21b8e681c14492fe198d362a7d2c83 # v6.18.0
@@ -90,4 +103,5 @@ runs:
cache-to: |
${{ steps.cache.outputs.cache-to }}
type=registry,ref=${{ inputs.cache-registry }}/${{ inputs.image_name }}-cache:latest,mode=max,image-manifest=true
- run: echo "::endgroup::"
- run: echo "::endgroup::"
if: ${{ always() }}