update Gitea workflow
This commit is contained in:
@@ -1,9 +1,5 @@
|
|||||||
name: TypeScript Bot CI
|
name: TypeScript Bot CI
|
||||||
|
|
||||||
permissions:
|
|
||||||
packages: write
|
|
||||||
contents: read
|
|
||||||
|
|
||||||
on:
|
on:
|
||||||
workflow_dispatch:
|
workflow_dispatch:
|
||||||
|
|
||||||
@@ -35,10 +31,11 @@ jobs:
|
|||||||
|
|
||||||
- name: Log into registry ${{ env.REGISTRY }}
|
- name: Log into registry ${{ env.REGISTRY }}
|
||||||
if: gitea.event_name != 'pull_request'
|
if: gitea.event_name != 'pull_request'
|
||||||
run: |
|
uses: docker/login-action@v3
|
||||||
echo "${{ secrets.GITEA_TOKEN }}" | docker login "$REGISTRY" \
|
with:
|
||||||
-u "${{ gitea.actor }}" \
|
registry: ${{ env.REGISTRY }}
|
||||||
--password-stdin
|
username: ${{ secrets.REGISTRY_USER }}
|
||||||
|
password: ${{ secrets.REGISTRY_TOKEN }}
|
||||||
|
|
||||||
- name: Extract Docker metadata
|
- name: Extract Docker metadata
|
||||||
id: meta
|
id: meta
|
||||||
|
|||||||
Reference in New Issue
Block a user