fix: changed pipline to use workflow token instead self made one
This commit is contained in:
@@ -2,10 +2,8 @@
|
|||||||
# Triggered manually via workflow_dispatch — enter an existing semver tag (e.g. 1.2.3)
|
# Triggered manually via workflow_dispatch — enter an existing semver tag (e.g. 1.2.3)
|
||||||
# in the "Release tag" input. The workflow will fail early if the tag does not exist.
|
# in the "Release tag" input. The workflow will fail early if the tag does not exist.
|
||||||
#
|
#
|
||||||
# One-time setup required:
|
# No secrets required — the automatic gitea.token is used for registry login.
|
||||||
# 1. Create a Gitea token with "package:write" scope.
|
# Gitea grants it package write access via the permissions block below.
|
||||||
# 2. Add it as a repository secret named GITEA_TOKEN
|
|
||||||
# (Repository → Settings → Secrets → Actions).
|
|
||||||
#
|
#
|
||||||
# After a successful run the image is available at:
|
# After a successful run the image is available at:
|
||||||
# <your-gitea-host>/<owner>/<repo>:<version>
|
# <your-gitea-host>/<owner>/<repo>:<version>
|
||||||
@@ -23,6 +21,9 @@ on:
|
|||||||
jobs:
|
jobs:
|
||||||
build-push:
|
build-push:
|
||||||
runs-on: ubuntu-latest
|
runs-on: ubuntu-latest
|
||||||
|
permissions:
|
||||||
|
packages: write
|
||||||
|
contents: read
|
||||||
|
|
||||||
steps:
|
steps:
|
||||||
- name: Checkout
|
- name: Checkout
|
||||||
@@ -69,7 +70,7 @@ jobs:
|
|||||||
with:
|
with:
|
||||||
registry: ${{ env.REGISTRY }}
|
registry: ${{ env.REGISTRY }}
|
||||||
username: ${{ gitea.actor }}
|
username: ${{ gitea.actor }}
|
||||||
password: ${{ secrets.GITEA_TOKEN }}
|
password: ${{ gitea.token }}
|
||||||
|
|
||||||
- name: Build and push
|
- name: Build and push
|
||||||
uses: docker/build-push-action@v5
|
uses: docker/build-push-action@v5
|
||||||
|
|||||||
Reference in New Issue
Block a user