2024-08-03 12:12:03 +02:00
|
|
|
name: Docker deploy
|
2024-08-22 19:29:49 +02:00
|
|
|
description: Deploy docker image to Gitea
|
2024-08-01 22:08:21 +02:00
|
|
|
|
|
|
|
inputs:
|
|
|
|
registry:
|
|
|
|
description: "Server address of Docker registry."
|
2024-08-02 13:07:09 +02:00
|
|
|
default: ${{ vars.CONTAINER_REGISTRY }}
|
2024-08-01 22:37:53 +02:00
|
|
|
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
|
2024-08-22 17:58:01 +02:00
|
|
|
release:
|
|
|
|
description: "Auto incrementing release number according to semver"
|
|
|
|
default: "false"
|
2024-08-22 18:26:38 +02:00
|
|
|
gitea-token:
|
|
|
|
description: "Gitea token to create a release"
|
2024-08-01 22:08:21 +02:00
|
|
|
|
|
|
|
runs:
|
|
|
|
using: composite
|
|
|
|
steps:
|
2024-08-22 19:03:09 +02:00
|
|
|
# - 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 }}
|
2024-08-22 18:46:23 +02:00
|
|
|
- uses: https://gitea.okami101.io/okami101/actions/release@main
|
2024-08-22 18:26:38 +02:00
|
|
|
if: ${{ inputs.release == 'true' }}
|
|
|
|
with:
|
|
|
|
token: ${{ inputs.gitea-token }}
|