init auto release project
This commit is contained in:
parent
664013e856
commit
9d015c65bb
@ -11,9 +11,6 @@ inputs:
|
|||||||
password:
|
password:
|
||||||
description: "Password or personal access token used to log against the Docker registry"
|
description: "Password or personal access token used to log against the Docker registry"
|
||||||
required: true
|
required: true
|
||||||
release:
|
|
||||||
description: "Auto incrementing release number according to semver"
|
|
||||||
default: "false"
|
|
||||||
gitea-token:
|
gitea-token:
|
||||||
description: "Gitea token to create a release"
|
description: "Gitea token to create a release"
|
||||||
|
|
||||||
@ -21,14 +18,16 @@ runs:
|
|||||||
using: composite
|
using: composite
|
||||||
steps:
|
steps:
|
||||||
- uses: https://gitea.okami101.io/okami101/actions/release@main
|
- uses: https://gitea.okami101.io/okami101/actions/release@main
|
||||||
if: ${{ inputs.release == 'true' }}
|
id: release
|
||||||
with:
|
with:
|
||||||
token: ${{ inputs.gitea-token }}
|
token: ${{ inputs.gitea-token }}
|
||||||
- uses: docker/metadata-action@v5
|
- uses: docker/metadata-action@v5
|
||||||
if: ${{ inputs.release != 'true' }}
|
|
||||||
id: meta
|
id: meta
|
||||||
with:
|
with:
|
||||||
images: ${{ inputs.registry }}/${{ gitea.repository }}
|
images: ${{ inputs.registry }}/${{ gitea.repository }}
|
||||||
|
tags: |
|
||||||
|
type=raw,value=latest
|
||||||
|
type=semver,pattern={{version}},value=${{ steps.release.outputs.version }}
|
||||||
- uses: docker/login-action@v3
|
- uses: docker/login-action@v3
|
||||||
with:
|
with:
|
||||||
registry: ${{ inputs.registry }}
|
registry: ${{ inputs.registry }}
|
||||||
|
Loading…
x
Reference in New Issue
Block a user