Author SHA1 Message Date
renovate 59c8f57ab2 Update Github Actions #none major
Actionlint / build (push) Successful in 25s
2026-07-29 13:06:38 +00:00
andreas b17c183a00 Update .github/workflows/docker-build.yml
Actionlint / build (push) Successful in 25s
2026-07-28 13:27:15 +03:00
renovate be95ef5b18 Merge pull request 'Update int128/docker-build-cache-config-action action to v1.64.0 #none minor (main)' (#52) from renovate-main-github-actions into main
Actionlint / build (push) Successful in 25s
2026-07-26 01:06:23 +03:00
renovate 7b5294dc98 Update int128/docker-build-cache-config-action action to v1.64.0 #none minor
Actionlint / build (push) Successful in 24s
2026-07-25 21:06:22 +00:00
renovate 9519ff5cb0 Merge pull request 'Update actions/checkout action to v4.4.0 #none minor (main)' (#51) from renovate-main-github-actions into main
Actionlint / build (push) Successful in 28s
2026-07-20 20:06:32 +03:00
renovate ffec9c4298 Update actions/checkout action to v4.4.0 #none minor
Actionlint / build (push) Successful in 44s
2026-07-20 16:06:26 +00:00
renovate b987ab54db Merge pull request 'Update int128/docker-build-cache-config-action action to v1.63.0 #none minor (main)' (#50) from renovate-main-github-actions into main
Actionlint / build (push) Successful in 30s
2026-07-18 21:06:23 +03:00
renovate ae5b4afac9 Update int128/docker-build-cache-config-action action to v1.63.0 #none minor
Actionlint / build (push) Successful in 28s
2026-07-18 17:06:34 +00:00
andreas 00f7aac8ab Lint (#49)
Actionlint / build (push) Successful in 27s
Reviewed-on: #49
2026-07-17 14:23:34 +03:00
andreas ef4d89d896 Update .github/workflows/docker-build.yml
Actionlint / build (push) Successful in 23s
2026-07-17 13:36:49 +03:00
andreas 863ec9d533 Update .github/workflows/docker-build.yml
Actionlint / build (push) Successful in 23s
2026-07-17 11:24:18 +03:00
andreas ec75d04e07 Update .github/workflows/docker-build.yml
Actionlint / build (push) Successful in 23s
2026-07-17 11:20:34 +03:00
andreas febb03c381 Update .github/workflows/docker-build.yml
Actionlint / build (push) Successful in 23s
2026-07-17 11:15:20 +03:00
andreas 0296e38b9d Update .github/workflows/docker-build.yml
Actionlint / build (push) Successful in 23s
2026-07-17 10:57:34 +03:00
andreas 0f083c7f72 Update .github/workflows/docker-build.yml
Actionlint / build (push) Successful in 24s
2026-07-17 10:53:39 +03:00
andreas adee4f2c02 Update .github/workflows/docker-build.yml
Actionlint / build (push) Successful in 24s
2026-07-17 10:49:51 +03:00
andreas 1325ec7992 Add .github/workflows/docker-build.yml
Actionlint / build (push) Successful in 23s
2026-07-17 10:48:46 +03:00
renovate 2dd16d63ab Merge pull request 'Update int128/docker-build-cache-config-action action to v1.62.0 #none minor (main)' (#47) from renovate-main-github-actions into main
Actionlint / build (push) Successful in 23s
2026-07-10 21:07:02 +03:00
renovate cd3e9dc119 Update int128/docker-build-cache-config-action action to v1.62.0 #none minor
Actionlint / build (push) Successful in 22s
2026-07-10 17:06:52 +00:00
renovate 8a52e9826d Merge pull request 'Update int128/docker-build-cache-config-action action to v1.61.0 #none minor (main)' (#46) from renovate-main-github-actions into main
Actionlint / build (push) Successful in 23s
2026-07-04 01:06:28 +03:00
renovate 6dbf4c08ad Update int128/docker-build-cache-config-action action to v1.61.0 #none minor
Actionlint / build (push) Successful in 21s
2026-07-03 21:06:25 +00:00
3 changed files with 100 additions and 5 deletions
+93
View File
@@ -0,0 +1,93 @@
name: 'Tag Build and Push Docker image'
on:
workflow_call:
inputs:
registry: # id of input
description: 'docker regisry host name'
type: string
default: 'gitea.phadric.de'
cache-registry: # id of input
description: 'docker regisry host name'
default: 'imagecache.phadric.de'
type: string
image_name:
description: 'name of the dockerimage'
required: true
type: string
checkout:
description: 'checkout repo first'
default: 'true'
type: string
tag:
description: 'checkout repo first'
default: 'true'
type: string
# secrets:
# TOKEN:
# description: 'repo auth token'
# required: true
jobs:
build:
runs-on: slim
steps:
- name: Checkout repository
if: ${{ inputs.checkout == 'true' }}
uses: actions/checkout@3d3c42e5aac5ba805825da76410c181273ba90b1 # v7.0.1
with:
fetch-depth: '0'
- name: Bump version and push tag
id: tag
if: ${{ inputs.tag == 'true' }}
uses: anothrNick/github-tag-action@4ed44965e0db8dab2b466a16da04aec3cc312fd8 # 1.75.0
env:
GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }} # if you don't want to set write permissions use a PAT token
DEFAULT_BUMP: patch
GIT_API_TAGGING: false # dont use API
WITH_V: true
PRERELEASE: true
PRERELEASE_SUFFIX: ${{ github.ref_name }}
- name: Extract Docker metadata
id: meta
uses: docker/metadata-action@dc802804100637a589fabce1cb79ff13a1411302 # v6.2.0
with:
flavor: |
latest=${{ github.ref_name == 'main' || github.ref_name == 'master' }}
tags: |
type=ref,event=branch
type=semver,pattern={{version}},value=${{steps.tag.outputs.tag}}
# output 0.1
type=semver,pattern={{major}}.{{minor}},value=${{steps.tag.outputs.tag}}
# disabled if major zero
type=semver,pattern={{major}},value=${{steps.tag.outputs.tag}},enable=${{ !startsWith(steps.tag.outputs.tag, 'v0.') }}
images: ${{ inputs.registry }}/${{ inputs.image_name }}
- uses: int128/docker-build-cache-config-action@d1b27ffbf29fb93b7239130db030c702198fd52b # v1.64.0
id: cache
with:
image: ${{ inputs.cache-registry }}/${{ inputs.image_name }}-cache
extra-cache-to: image-manifest=true
- name: Setup Docker buildx
uses: docker/setup-buildx-action@bb05f3f5519dd87d3ba754cc423b652a5edd6d2c # v4.2.0
- name: Log into registry ${{ inputs.registry }}
uses: docker/login-action@dbcb813823bdd20940b903addbd779551569679f # v4.6.0
with:
registry: ${{ inputs.registry }}
username: ${{ github.actor }}
password: ${{ secrets.TOKEN }}
- name: Build and push Docker image
id: build-and-push
uses: docker/build-push-action@53b7df96c91f9c12dcc8a07bcb9ccacbed38856a # v7.3.0
with:
context: .
push: true
tags: ${{ steps.meta.outputs.tags }}
platforms: linux/amd64
labels: ${{ steps.meta.outputs.labels }}
cache-from: |
type=registry,ref=${{ inputs.cache-registry }}/${{ inputs.image_name }}-cache:latest
type=registry,ref=${{ inputs.cache-registry }}/${{ inputs.image_name }}-cache:${{ github.ref_name }}
${{ steps.cache.outputs.cache-from }}
cache-to: |
${{ steps.cache.outputs.cache-to }}
type=registry,ref=${{ inputs.cache-registry }}/${{ inputs.image_name }}-cache:latest,mode=max,image-manifest=true
+3 -1
View File
@@ -17,9 +17,11 @@ jobs:
steps:
- name: Checkout repository
uses: actions/checkout@9c091bb21b7c1c1d1991bb908d89e4e9dddfe3e0 # v7.0.0
uses: actions/checkout@3d3c42e5aac5ba805825da76410c181273ba90b1 # v7.0.1
- name: Verify Action
run: actionlint -ignore 'unexpected key "description" for "workflow" section' -ignore 'nexpected key "inputs" for "workflow" section.' -ignore 'unexpected key "runs" for "workflow" section.' -ignore '"on" section is missing in workflow' -ignore '"jobs" section is missing in workflow' action.yml
- name: Verify Workflow
run: actionlint -ignore 'label "slim" is unknown' .github/workflows/docker-build.yml
- name: tag latest after success
if: github.ref == 'refs/heads/main'
id: tag
+4 -4
View File
@@ -29,7 +29,7 @@ runs:
steps:
- name: Checkout repository
if: ${{ inputs.checkout == 'true' }}
uses: actions/checkout@9c091bb21b7c1c1d1991bb908d89e4e9dddfe3e0 # v7.0.0
uses: actions/checkout@3d3c42e5aac5ba805825da76410c181273ba90b1 # v7.0.1
with:
fetch-depth: '0'
- name: Bump version and push tag
@@ -57,15 +57,15 @@ runs:
# disabled if major zero
type=semver,pattern={{major}},value=${{steps.tag.outputs.tag}},enable=${{ !startsWith(steps.tag.outputs.tag, 'v0.') }}
images: ${{ inputs.registry }}/${{ inputs.image_name }}
- uses: int128/docker-build-cache-config-action@e7428bcd6851e35bd024e91ea18c0da8c0a098b4 # v1.60.0
- uses: int128/docker-build-cache-config-action@d1b27ffbf29fb93b7239130db030c702198fd52b # v1.64.0
id: cache
with:
image: ${{ inputs.cache-registry }}/${{ inputs.image_name }}-cache
extra-cache-to: image-manifest=true
- name: Setup Docker buildx
uses: docker/setup-buildx-action@d7f5e7f509e45cec5c76c4d5afdd7de93d0b3df5 # v4.1.0
uses: docker/setup-buildx-action@bb05f3f5519dd87d3ba754cc423b652a5edd6d2c # v4.2.0
- name: Log into registry ${{ inputs.registry }}
uses: docker/login-action@c99871dec2022cc055c062a10cc1a1310835ceb4 # v4.3.0
uses: docker/login-action@dbcb813823bdd20940b903addbd779551569679f # v4.6.0
with:
registry: ${{ inputs.registry }}
username: ${{ github.actor }}