42 lines
1.3 KiB
YAML
42 lines
1.3 KiB
YAML
name: Docker deploy
|
|
description: Deploy docker image to Gitea
|
|
|
|
inputs:
|
|
registry:
|
|
description: "Server address of Docker registry."
|
|
default: ${{ vars.CONTAINER_REGISTRY }}
|
|
username:
|
|
description: "Username used to log against the Docker registry"
|
|
default: ${{ vars.CONTAINER_REGISTRY_USERNAME }}
|
|
password:
|
|
description: "Password or personal access token used to log against the Docker registry"
|
|
required: true
|
|
release:
|
|
description: "Auto incrementing release number according to semver"
|
|
default: "false"
|
|
gitea-token:
|
|
description: "Gitea token to create a release"
|
|
|
|
runs:
|
|
using: composite
|
|
steps:
|
|
# - uses: docker/metadata-action@v5
|
|
# id: meta
|
|
# with:
|
|
# images: ${{ inputs.registry }}/${{ gitea.repository }}
|
|
# - uses: docker/login-action@v3
|
|
# with:
|
|
# registry: ${{ inputs.registry }}
|
|
# username: ${{ inputs.username }}
|
|
# password: ${{ inputs.password }}
|
|
# - uses: docker/build-push-action@v6
|
|
# with:
|
|
# context: .
|
|
# push: true
|
|
# tags: ${{ steps.meta.outputs.tags }}
|
|
# labels: ${{ steps.meta.outputs.labels }}
|
|
- uses: https://gitea.okami101.io/okami101/actions/release@main
|
|
if: ${{ inputs.release == 'true' }}
|
|
with:
|
|
token: ${{ inputs.gitea-token }}
|