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 - name: Checkout
uses: actions/checkout@v4 uses: actions/checkout@v4
- name: Docker meta - name: Get version tag
id: meta id: next-version
uses: docker/metadata-action@v5 run: |
with: echo "next-version=$(git-sv next-version)" >> $GITHUB_OUTPUT
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: Build and push - name: Build and push
uses: https://code.252.no/tommy/kaniko-action@latest uses: https://code.252.no/tommy/kaniko-action@latest
@ -38,7 +28,7 @@ jobs:
context: /workspace/${{ github.repository }} context: /workspace/${{ github.repository }}
credentials: | credentials: |
code.252.no=${{ github.repository_owner }}:${{ secrets.REGISTRY_TOKEN }} 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' push: 'true'