fix: use gitea job token for registry push
This commit is contained in:
@@ -5,6 +5,10 @@ on:
|
||||
branches:
|
||||
- main
|
||||
|
||||
permissions:
|
||||
contents: read
|
||||
packages: write
|
||||
|
||||
env:
|
||||
VERSION: 1.3.0
|
||||
|
||||
@@ -21,7 +25,7 @@ jobs:
|
||||
with:
|
||||
registry: git.codeanddice.ru # НАПРИМЕР: gitea.my-server.com
|
||||
username: toutsu
|
||||
password: ${{ secrets.GIT_TOKEN }}
|
||||
password: ${{ secrets.GITEA_TOKEN }}
|
||||
|
||||
- name: Build and push Bot
|
||||
uses: docker/build-push-action@v5
|
||||
@@ -64,7 +68,7 @@ jobs:
|
||||
- name: Deploy Containers
|
||||
run: |
|
||||
# Авторизуемся локальным докером в нашей Gitea
|
||||
docker login git.codeanddice.ru/ -u toutsu -p ${{ secrets.GIT_TOKEN }}
|
||||
docker login git.codeanddice.ru/ -u toutsu -p ${{ secrets.GITEA_TOKEN }}
|
||||
|
||||
# Pull гарантирует, что мы получили нужную версию.
|
||||
docker compose pull bot web
|
||||
|
||||
Reference in New Issue
Block a user