Update action.yml

This commit is contained in:
2024-11-15 14:00:34 +02:00
parent 09e9933be9
commit b85ac21b4b

View File

@@ -10,15 +10,9 @@ inputs:
required: true required: true
default: ${{ github.repository }} default: ${{ github.repository }}
token: token:
description: 'auth token' description: 'repo auth token'
required: true required: true
env:
# Use docker.io for Docker Hub if empty
REGISTRY: gitea.phadric.de
# github.repository as <account>/<repo>
IMAGE_NAME: ${{ github.repository }}
runs: runs:
using: "composite" using: "composite"
steps: steps:
@@ -31,7 +25,7 @@ runs:
id: tag id: tag
uses: phadric/github-tag-action@a5250a59655e9f4b0350407380a92c73948f2aec # master uses: phadric/github-tag-action@a5250a59655e9f4b0350407380a92c73948f2aec # master
env: env:
GITHUB_TOKEN: ${{ inputs.token }} # if you don't want to set write permissions use a PAT token GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }} # if you don't want to set write permissions use a PAT token
DEFAULT_BUMP: patch DEFAULT_BUMP: patch
GIT_API_TAGGING: false # dont use API GIT_API_TAGGING: false # dont use API
WITH_V: true WITH_V: true
@@ -67,7 +61,7 @@ runs:
with: with:
registry: ${{ inputs.registry }} registry: ${{ inputs.registry }}
username: ${{ github.actor }} username: ${{ github.actor }}
password: ${{ secrets.TOKEN }} password: ${{ inputs.token }}
- name: Build and push Docker image - name: Build and push Docker image
id: build-and-push id: build-and-push