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
|
- 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'
|
||||||
|
|
||||||
|
|
||||||
|
|
Loading…
Reference in a new issue