Compare commits

..

2 Commits

2 changed files with 14 additions and 14 deletions
+10 -10
View File
@@ -47,38 +47,38 @@ jobs:
matrix: matrix:
# Prepared for future multi-arch support in the future, as soon as ACT has support for dynamic matrixes. # Prepared for future multi-arch support in the future, as soon as ACT has support for dynamic matrixes.
arch: [amd64] arch: [amd64]
needs:
- test
runs-on: runs-on:
- ubuntu-latest - ubuntu-latest
- linux_${{ matrix.arch }} - linux_${{ matrix.arch }}
steps: steps:
- uses: actions/checkout@9c091bb21b7c1c1d1991bb908d89e4e9dddfe3e0 # v7.0.0 - uses: actions/checkout@de0fac2e4500dabe0009e67214ff5f5447ce83dd # v6.0.2
- uses: docker/setup-buildx-action@bb05f3f5519dd87d3ba754cc423b652a5edd6d2c # v4.2.0 - uses: docker/setup-buildx-action@d7f5e7f509e45cec5c76c4d5afdd7de93d0b3df5 # v4.1.0
- uses: docker/login-action@af1e73f918a031802d376d3c8bbc3fe56130a9b0 # v4.4.0 - uses: docker/login-action@4907a6ddec9925e35a0a9e82d7399ccc52663121 # v4.1.0
with: with:
registry: ${{ inputs.registry }} registry: ${{ inputs.registry }}
username: ${{ inputs.registry-user }} username: ${{ inputs.registry-user }}
password: ${{ inputs.registry-password }} password: ${{ inputs.registry-password }}
- uses: docker/build-push-action@53b7df96c91f9c12dcc8a07bcb9ccacbed38856a # v7.3.0 - uses: docker/build-push-action@bcafcacb16a39f128d818304e6c9c0c18556b85f # v7.1.0
with: with:
context: ${{ inputs.context }} context: ${{ inputs.context }}
file: ${{ inputs.dockerfile }} file: ${{ inputs.dockerfile }}
platforms: linux/${{ matrix.arch }} platforms: linux/${{ matrix.arch }}
push: ${{ inputs.dry-run == false || inputs.dry-run == 'false' }} push: ${{ !inputs.dry-run }}
provenance: false provenance: false
tags: | tags: |
${{ inputs.registry }}/${{ inputs.repo-name }}:${{ inputs.tag }}-${{ matrix.arch }} ${{ 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: create_manifest:
name: Create manifest name: Create manifest
if: ${{ inputs.dry-run == false || inputs.dry-run == 'false' }} if: ${{ !inputs.dry-run }}
needs: needs:
- build_and_push - build_and_push
runs-on: ubuntu-latest runs-on: ubuntu-latest
steps: steps:
- uses: actions/checkout@9c091bb21b7c1c1d1991bb908d89e4e9dddfe3e0 # v7.0.0 - uses: actions/checkout@de0fac2e4500dabe0009e67214ff5f5447ce83dd # v6.0.2
- uses: docker/login-action@af1e73f918a031802d376d3c8bbc3fe56130a9b0 # v4.4.0 - uses: docker/login-action@4907a6ddec9925e35a0a9e82d7399ccc52663121 # v4.1.0
with: with:
registry: ${{ inputs.registry }} registry: ${{ inputs.registry }}
username: ${{ inputs.registry-user }} username: ${{ inputs.registry-user }}
+4 -4
View File
@@ -5,7 +5,7 @@ on:
branches: branches:
- main - main
paths: paths:
- ".gitea/workflows/*.yaml" - ".gitea/workflows/"
workflow_dispatch: workflow_dispatch:
jobs: jobs:
@@ -13,15 +13,15 @@ jobs:
name: Release name: Release
runs-on: ubuntu-latest runs-on: ubuntu-latest
steps: steps:
- uses: actions/checkout@9c091bb21b7c1c1d1991bb908d89e4e9dddfe3e0 # v7.0.0 - uses: actions/checkout@de0fac2e4500dabe0009e67214ff5f5447ce83dd # v6.0.2
with: with:
fetch-depth: 0 fetch-depth: 0
- name: Increment tag - name: Increment tag
id: tag id: tag
uses: https://gitea.t000-n.de/t.behrendt/conventional-semantic-git-tag-increment@39e952658b0543b68395c7566038444c4057cd6a # 0.1.40 uses: https://gitea.t000-n.de/t.behrendt/conventional-semantic-git-tag-increment@ef0c23189db33220a73022d8c29a27709d0df440 # 0.1.32
with: with:
token: ${{ secrets.GITEA_TOKEN }} token: ${{ secrets.GITEA_TOKEN }}
- name: Push tag - name: Push tag
uses: https://gitea.t000-n.de/t.behrendt/actions/release-git-tag@5ad25d97af3bcb89090663e71ca1b259fc0c64e0 # 0.2.9 uses: https://gitea.t000-n.de/t.behrendt/actions/release-git-tag@38c1bbd8bad3e7965744d03de85faa4a5b808d1b # 0.2.4
with: with:
tag: ${{ steps.tag.outputs.new-tag }} tag: ${{ steps.tag.outputs.new-tag }}