Update .forgejo/workflows/release.yaml
All checks were successful
Release / build-image (push) Successful in 2m47s

This commit is contained in:
Tommy 2024-11-10 11:45:21 +00:00
parent 1671117461
commit e6586edfed
Signed by: Mooo[bot]
GPG key ID: CF3AFE4D5B62BB9A

View file

@ -16,20 +16,10 @@ jobs:
- name: Checkout
uses: actions/checkout@v4
- name: Docker meta
id: meta
uses: docker/metadata-action@v5
with:
images: |
${{ github.repository }}
tags: |
type=semver,pattern={{version}},prefix=v
type=semver,pattern={{major}}.{{minor}},prefix=v
type=semver,pattern={{major}},prefix=v
type=ref,event=branch
type=ref,event=pr
flavor: |
latest=auto
- name: Get version tag
id: next-version
run: |
echo "next-version=$(git-sv next-version)" >> $GITHUB_OUTPUT
- name: Build and push
uses: https://code.252.no/tommy/kaniko-action@latest
@ -38,7 +28,7 @@ jobs:
context: /workspace/${{ github.repository }}
credentials: |
code.252.no=${{ github.repository_owner }}:${{ secrets.REGISTRY_TOKEN }}
destinations: "code.252.no/tommy/mbpfan:${{ steps.meta.outputs.tags }}"
destinations: "code.252.no/tommy/mbpfan:${{ steps.next-version.outputs.next-version }}"
push: 'true'