Update .forgejo/workflows/release.yaml
All checks were successful
Release / build-image (push) Successful in 2m47s
All checks were successful
Release / build-image (push) Successful in 2m47s
This commit is contained in:
parent
1671117461
commit
e6586edfed
1 changed files with 5 additions and 15 deletions
|
@ -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'
|
||||
|
||||
|
||||
|
|
Loading…
Reference in a new issue