2024-08-01 20:08:21 +00:00
|
|
|
name: Deploy image to Gitea
|
|
|
|
description: Deploy image to Gitea
|
|
|
|
|
|
|
|
inputs:
|
|
|
|
registry:
|
|
|
|
description: "Server address of Docker registry."
|
|
|
|
default: gitea.okami101.io
|
|
|
|
username:
|
|
|
|
description: "Username used to log against the Docker registry"
|
|
|
|
required: true
|
|
|
|
password:
|
|
|
|
description: "Password or personal access token used to log against the Docker registry"
|
|
|
|
required: true
|
|
|
|
|
|
|
|
runs:
|
|
|
|
using: composite
|
|
|
|
steps:
|
|
|
|
- uses: docker/metadata-action@v5
|
|
|
|
id: meta
|
|
|
|
with:
|
2024-08-01 20:13:35 +00:00
|
|
|
images: ${{ inputs.registry }}/${{ gitea.repository }}
|
2024-08-01 20:08:21 +00:00
|
|
|
- uses: docker/login-action@v3
|
|
|
|
with:
|
2024-08-01 20:13:35 +00:00
|
|
|
registry: ${{ inputs.registry }}
|
|
|
|
username: ${{ inputs.username }}
|
|
|
|
password: ${{ inputs.password }}
|
2024-08-01 20:08:21 +00:00
|
|
|
- uses: docker/build-push-action@v6
|
|
|
|
with:
|
|
|
|
context: .
|
|
|
|
push: true
|
|
|
|
tags: ${{ steps.meta.outputs.tags }}
|
|
|
|
labels: ${{ steps.meta.outputs.labels }}
|