добавили новую переменную в воркфлоу
This commit is contained in:
@@ -17,7 +17,7 @@ jobs:
|
||||
uses: docker/login-action@v3
|
||||
with:
|
||||
registry: git.codeanddice.ru # НАПРИМЕР: gitea.my-server.com
|
||||
username: ${{ gitea.actor }}
|
||||
username: toutsu
|
||||
password: ${{ secrets.GIT_TOKEN }}
|
||||
|
||||
- name: Build and push Bot
|
||||
@@ -26,7 +26,7 @@ jobs:
|
||||
context: .
|
||||
file: src/GmRelay.Bot/Dockerfile
|
||||
push: true
|
||||
tags: git.codeanddice.ru/${{ gitea.actor }}/gmrelay-bot:latest
|
||||
tags: git.codeanddice.ru/toutsu/gmrelay-bot:latest
|
||||
|
||||
- name: Build and push Web
|
||||
uses: docker/build-push-action@v5
|
||||
@@ -34,7 +34,7 @@ jobs:
|
||||
context: .
|
||||
file: src/GmRelay.Web/Dockerfile
|
||||
push: true
|
||||
tags: git.codeanddice.ru/${{ gitea.actor }}/gmrelay-web:latest
|
||||
tags: git.codeanddice.ru/toutsu/gmrelay-web:latest
|
||||
|
||||
# ЧАСТЬ 2: Запускаем эти образы на самом сервере
|
||||
deploy:
|
||||
@@ -53,7 +53,7 @@ jobs:
|
||||
- name: Deploy Containers
|
||||
run: |
|
||||
# Авторизуемся локальным докером в нашей Gitea
|
||||
docker login git.codeanddice.ru/ -u ${{ gitea.actor }} -p ${{ secrets.GIT_TOKEN }}
|
||||
docker login git.codeanddice.ru/ -u toutsu -p ${{ secrets.GIT_TOKEN }}
|
||||
|
||||
# Так как раннер на том же сервере, образ уже закэширован,
|
||||
# но pull гарантирует, что compose подхватит именно свежий latest-тег.
|
||||
|
||||
Reference in New Issue
Block a user